From 89501ddf2e23005fe2a6ab14b97f235345ae0a76 Mon Sep 17 00:00:00 2001 From: Ken Powers Date: Wed, 4 Dec 2024 19:31:00 -0500 Subject: [PATCH] Add github actions --- .github/workflows/check.yml | 75 +++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..19dabfb8 --- /dev/null +++ b/.github/workflows/check.yml @@ -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