pompy.dev/.forgejo/workflows/test.yml
pompydev 34d134d39b
Some checks failed
Test / Test (push) Failing after 7m34s
ci: fix failing tests
2025-06-01 12:58:39 +09:00

32 lines
1.1 KiB
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: docker
container:
image: ghcr.io/cachix/devenv/devenv:latest
steps:
- run: nix-env -i nodejs
- uses: actions/checkout@v4
- name: Install devenv.sh
run: |
nix \
--extra-experimental-features nix-command \
--extra-experimental-features flakes \
profile install nixpkgs#devenv --priority 4
- run: devenv shell pnpm install
- run: | # https://github.com/oxc-project/oxc/issues/1690#issuecomment-1858814377
nix run nixpkgs#patchelf -- \
--set-interpreter "$(nix eval nixpkgs#stdenv.cc.bintools.dynamicLinker --raw)" \
/workspace/pomp/pompy.dev/node_modules/@oxlint/linux-x64-gnu/oxlint
- run: devenv shell pnpm lint
- run: devenv shell pnpm build
- run: devenv shell pnpm test:unit
- run: devenv shell pnpm test:e2e