Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
knpwrs committed Dec 5, 2024
1 parent 9909140 commit be8b817
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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"

0 comments on commit be8b817

Please sign in to comment.