Convert the Action into TypeScript #165
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
typescript-action: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Enable magic Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Install pnpm dependencies | |
run: nix develop --command pnpm install | |
- name: Check formatting | |
run: nix develop --command pnpm run check-fmt | |
- name: Lint | |
run: nix develop --command pnpm run lint | |
- name: Build | |
run: nix develop --command pnpm run build | |
- name: Run test suite | |
run: nix develop --command pnpm run test | |
- name: Package | |
run: nix develop --command pnpm run package | |
- name: Check git status | |
run: git status --porcelain=v1 | |
- name: Ensure no staged changes | |
run: git diff --exit-code |