Add names to CI steps

This commit is contained in:
Luc Perkins 2024-05-02 10:56:42 -03:00
parent 57a6360160
commit 7acbc80e00
No known key found for this signature in database
GPG Key ID: 16DB1108FB591835
2 changed files with 15 additions and 4 deletions

View File

@ -14,10 +14,20 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix develop --command pnpm install
- run: nix develop --command pnpm run all
- run: git status --porcelain=v1
- run: git diff --exit-code
- name: pnpm install
run: nix develop --command pnpm install
- name: prettier format
run: nix develop --command pnpm run check-fmt
- name: ESLint
run: nix develop --command pnpm run lint
- name: tsup build
run: nix develop --command pnpm run build
- name: ncc package
run: nix develop --command pnpm run package
- name: Git status
run: git status --porcelain=v1
- name: Ensure no staged changes
run: git diff --exit-code
run-test-suite:
name: Run test suite
strategy:

View File

@ -8,6 +8,7 @@
"scripts": {
"build": "tsc",
"format": "prettier --write .",
"check-fmt": "prettier --check .",
"lint": "eslint src/**/*.ts",
"package": "ncc build",
"all": "pnpm run format && pnpm run lint && pnpm run build && pnpm run package"