diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..b61aa7ce --- /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: 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: nixpkgs=https://github.com/nixos/nixpkgs/archive/df7cef32c3494ca95363e119160be6960022b0fd.tar.gz + - 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: nixpkgs=https://github.com/nixos/nixpkgs/archive/df7cef32c3494ca95363e119160be6960022b0fd.tar.gz + - 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: nixpkgs=https://github.com/nixos/nixpkgs/archive/df7cef32c3494ca95363e119160be6960022b0fd.tar.gz + - 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: 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 test