pompy.dev/.github/workflows/test.yml
2025-06-01 06:35:26 +09:00

33 lines
920 B
YAML

# https://devenv.sh/integrations/github-actions
name: Test
on:
push:
branches:
- master
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
# permissions required for nix caching to work properly
id-token: write
contents: read
defaults:
run:
shell: devenv shell bash -- -e {0}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/flakehub-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
shell: bash -e {0}
- name: Cache turbo build
uses: dtinth/setup-github-actions-caching-for-turbo@v1
- run: pnpm install
- run: pnpm lint
- run: pnpm build
- run: pnpm test:unit
- run: pnpm test:e2e