Skip to content

Add github actions

Add github actions #4

Workflow file for this run

name: Check
on: ["push", "pull_request"]
jobs:
gateway:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v27
- name: Check gateway
working-directory: ./services/gateway
run: |
nix-shell $GITHUB_WORKSPACE/shell.nix --run "bun install && bun run check"
web:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v27
- name: Check web
working-directory: ./apps/web
run: |
nix-shell $GITHUB_WORKSPACE/shell.nix --run "npm ci && npm run check"
web-next:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v27
- name: Check web-next
working-directory: ./apps/web-next
run: |
nix-shell $GITHUB_WORKSPACE/shell.nix --run "bun install && bun run check"
scripts:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v27
- name: Check Scripts
working-directory: ./scripts
run: |
nix-shell $GITHUB_WORKSPACE/shell.nix --run "npm run ci && npm run check"
gateway-test:
runs-on: depot-ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v27
- name: Test gateway
working-directory: ./services/gateway
run: |
nix-shell $GITHUB_WORKSPACE/shell.nix --run "bun install && bun run test"