diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yaml | 53 | ||||
| -rw-r--r-- | .github/workflows/codeql.yaml | 2 | ||||
| -rw-r--r-- | .github/workflows/eslint.yaml | 9 | ||||
| -rw-r--r-- | .github/workflows/treefmt.yaml | 30 |
4 files changed, 32 insertions, 62 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index b77ed84..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,53 +0,0 @@ -name: CI - -on: - pull_request: - workflow_dispatch: - -jobs: - build: - name: Build - - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v13 - - - name: Install Dependencies - run: nix develop .#ci --command pnpm install --frozen-lockfile - - - name: Run build - run: nix develop .#ci --command nrr build - - treefmt: - name: Treefmt - - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v13 - - - name: Run checks - run: | - nix develop .#ci --command treefmt --fail-on-change - - release-gate: - name: CI Release gate - needs: [build, treefmt] - - if: always() - - runs-on: ubuntu-latest - - steps: - - name: Exit with error - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') - run: exit 1 diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 9d82771..ea9d2ce 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -6,7 +6,7 @@ on: jobs: codeql: - name: Run CodeQL scan + name: Run scan runs-on: ubuntu-latest diff --git a/.github/workflows/eslint.yaml b/.github/workflows/eslint.yaml index 0a6f7ce..56bae3e 100644 --- a/.github/workflows/eslint.yaml +++ b/.github/workflows/eslint.yaml @@ -1,13 +1,6 @@ name: ESLint on: - push: - branches: [main] - paths: - - "**.ts" - - "package.json" - - "pnpm-lock.yaml" - - "tsconfig.json" pull_request: jobs: @@ -24,7 +17,7 @@ jobs: uses: actions/checkout@v4 - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v13 + uses: DeterminateSystems/nix-installer-action@v14 - name: Install Dependencies run: nix develop .#ci --command pnpm install --frozen-lockfile diff --git a/.github/workflows/treefmt.yaml b/.github/workflows/treefmt.yaml new file mode 100644 index 0000000..1321488 --- /dev/null +++ b/.github/workflows/treefmt.yaml @@ -0,0 +1,30 @@ +name: Treefmt + +on: + pull_request: + paths: + - "**.lock" + - "**.nix" + - "**.ts" + - "package.json" + - "tsconfig.json" + + - ".github/workflows/ci.yaml" + workflow_dispatch: + +jobs: + treefmt: + name: Run treefmt + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v14 + + - name: Run treefmt + run: | + nix fmt -- --ci |
