From ab34bc2537c42f4c256784037bffa7d1869bf86b 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 | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 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..05a39ca9 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,68 @@ +name: Check + +on: ["push", "pull_request"] + +jobs: + gateway: + runs-on: depot-ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: oven-sh/setup-bun@v2 + with: + bun-version: "1.1.34" + - name: Check gateway + working-directory: ./services/gateway + run: | + bun install + bun run check + web: + runs-on: depot-ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: "20.18.0" + cache: "npm" + cache-dependency-path: ./apps/web/package-lock.json + - name: Check web + working-directory: ./apps/web + run: | + npm ci + npm run check + web-next: + runs-on: depot-ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: oven-sh/setup-bun@v2 + with: + bun-version: "1.1.34" + - name: Check web-next + working-directory: ./apps/web-next + run: | + bun install + bun run check + scripts: + runs-on: depot-ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: "20.18.0" + cache: "npm" + cache-dependency-path: ./scripts/package-lock.json + - name: Check Scripts + run: | + npm ci + npm run check + gateway-test: + runs-on: depot-ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: oven-sh/setup-bun@v2 + with: + bun-version: "1.1.34" + - name: Test gateway + working-directory: ./services/gateway + run: | + bun install + bun run check