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

32 lines
810 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
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Cache turbo build
uses: dtinth/setup-github-actions-caching-for-turbo@v1
- shell: devenv shell bash -- -e {0}
run: |
pnpm install
pnpm lint
pnpm build
pnpm test:unit
pnpm test:e2e