Skip to content

Add github actions

Add github actions #1

Workflow file for this run

name: Check

Check failure on line 1 in .github/workflows/check.yml

View workflow run for this annotation

GitHub Actions / Check

Invalid workflow file

The workflow is not valid. .github/workflows/check.yml: Anchors are not currently supported. Remove the anchor 'nix_path'
on: ["push", "pull_request"]
jobs:
gateway:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: &nix_path nixpkgs=https://github.com/nixos/nixpkgs/archive/df7cef32c3494ca95363e119160be6960022b0fd.tar.gz
- uses: workflow/nix-shell-action@v3
with:
packages: bun
working-directory: ./services/gateway
script: |
bun install
bun run check
web:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: *nix_path
- uses: workflow/nix-shell-action@v3
with:
packages: node
working-directory: ./apps/web
script: |
npm ci
npm run check
web-next:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: *nix_path
- uses: workflow/nix-shell-action@v3
with:
packages: bun
working-directory: ./apps/web-next
script: |
bun install
bun run check
scripts:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: *nix_path
- uses: workflow/nix-shell-action@v3
with:
packages: node
working-directory: ./scripts
script: |
npm ci
npm run check
gateway-test:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: *nix_path
- uses: workflow/nix-shell-action@v3
with:
packages: bun
working-directory: ./services/gateway
script: |
bun install
bun run test