pompy.dev/.forgejo/workflows/test.yml
pompydev f4e83af810
Some checks failed
Test / Test (push) Failing after 6m4s
ci: fix failing tests
2025-06-01 20:23:48 +09:00

30 lines
806 B
YAML

# https://devenv.sh/integrations/github-actions
# https://forgejo.org/docs/latest/user/actions/
name: Test
on:
push:
branches:
- master
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- run: apt-get update && apt-get install sudo
- uses: actions/setup-node@v4
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
extra_nix_config: | # https://github.com/NixOS/nix/issues/11295
sandbox = true
- run: nix profile install nixpkgs#devenv
- uses: rharkor/caching-for-turbo@v1.8
- name: Run tests
shell: devenv shell bash -- -e {0}
run: |
pnpm install
pnpm lint
pnpm build
pnpm test:unit
pnpm test:e2e