From f9d30de0f2ae2998d30ae756baaf891ab7ba4397 Mon Sep 17 00:00:00 2001 From: Thilo Maier Date: Sun, 2 Jun 2024 20:33:26 +0000 Subject: [PATCH] Add CI workflow Fixes #7 --- .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..5a8b560 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: ['main'] + pull_request: + types: [opened, synchronize] + +jobs: + checks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: latest + + - uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + cache: 'pnpm' + + - run: pnpm i --frozen-lockfile + + - run: pnpm run lint + + - run: pnpm run check