26 lines
723 B
YAML
26 lines
723 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
|
|
- run: |
|
|
export HOME=$(mktemp -d)
|
|
devenv shell pnpm install
|
|
devenv shell pnpm lint
|
|
devenv shell pnpm build
|
|
devenv shell pnpm test:unit
|
|
devenv shell pnpm test:e2e
|