From 7acbc80e00a2e5645cfe4fd4f27a258678c3bc16 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Thu, 2 May 2024 10:56:42 -0300 Subject: [PATCH] Add names to CI steps --- .github/workflows/ci.yml | 18 ++++++++++++++---- package.json | 1 + 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d796f8..07b3ffa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/package.json b/package.json index afee436..38b46ff 100644 --- a/package.json +++ b/package.json @@ -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"