pompy.dev/.forgejo/workflows/test.yml
pompydev 0056784e6e
Some checks failed
Test / Test (push) Has been cancelled
ci: fix failing tests
2025-06-01 15:18:08 +09:00

25 lines
815 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
- run: nix profile install nixpkgs#devenv
- uses: rharkor/caching-for-turbo@v1.8
# https://github.com/NixOS/nixpkgs/issues/16144#issuecomment-225422439
- run: HOME=$TMP devenv shell pnpm install
- run: HOME=$TMP devenv shell pnpm lint
- run: HOME=$TMP devenv shell pnpm build
- run: HOME=$TMP devenv shell pnpm test:unit
- run: HOME=$TMP devenv shell pnpm test:e2e