From d25dadceaa9ae2d015f9915f1ca26f83057c64e1 Mon Sep 17 00:00:00 2001 From: Charles Lirsac Date: Tue, 28 Nov 2023 21:42:52 +0000 Subject: [PATCH] (wip) github actions --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..375d69e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Checks +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: oven-sh/setup-bun@v1 + id: setup-bun + - name: Cache node_modules + uses: actions/cache@v3 + with: + path: node_modules/ + key: ${{ runner.os }}-${{ steps.setup-bun.bun-version }}-node-modules + - name: Install deps + run: bun install + - name: Typecheck + run: bun run typecheck + - name: ESLint + run: bun run lint + - name: Check formatting + run: bun run fmt-check