From 4031ffd2c5b1ac7c2028caa89d23beba923db58e Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Wed, 12 Jun 2024 13:39:40 +0200 Subject: [PATCH] [CI] Set up CI --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..69288f5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI +on: [push, pull_request, workflow_dispatch] + +env: + FORCE_COLOR: true + +jobs: + build: + name: Typechecking & linting + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2 + with: + version: 9 + run_install: false + - name: Install Node.JS + uses: actions/setup-node@v1 + with: + node-version: '20.x' + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Typecheck + run: pnpm run check + + - name: Check linting + run: pnpm run lint + + - name: Check formatting + run: pnpm run check-fmt