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 89501dd
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Check

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

0 comments on commit 89501dd

Please sign in to comment.