Skip to content

Update actions / node24 #245

Update actions / node24

Update actions / node24 #245

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
build-check-typescript:
name: Build and check the TypeScript Action
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/determinate-nix-action@v3
- uses: DeterminateSystems/flakehub-cache-action@main
- run: nix develop --command pnpm install
- run: nix develop --command pnpm run format
- run: nix develop --command pnpm run lint
- run: nix develop --command pnpm run build
- run: nix develop --command pnpm run package
- run: git status --porcelain=v1
- run: git diff --exit-code
run-x86_64-linux-clean:
name: Run x86_64 Linux (clean)
needs: build-check-typescript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Check flake.lock
uses: ./
with:
_internal-strict-mode: true
run-x86_64-linux-dirty:
name: Run x86_64 Linux (dirty)
needs: build-check-typescript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Check flake.lock
uses: ./
with:
flake-lock-path: flake.dirty.lock
_internal-strict-mode: true
run-aarch64-darwin-clean:
name: Run x86_64 Darwin (clean)
needs: build-check-typescript
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Check flake.lock
uses: ./
with:
_internal-strict-mode: true
run-aarch64-darwin-dirty:
name: Run x86_64 Darwin (dirty)
needs: build-check-typescript
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Check flake.lock
uses: ./
with:
flake-lock-path: flake.dirty.lock
_internal-strict-mode: true
success:
name: Success
needs:
- run-x86_64-linux-clean
- run-x86_64-linux-dirty
- run-aarch64-darwin-clean
- run-aarch64-darwin-dirty
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- run: "true"
- run: |
echo "A dependent in the build matrix failed:"
echo "$needs"
exit 1
env:
needs: ${{ toJSON(needs) }}
if: |
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled')