From f96a1d6d67111998dfcb4bf48faac5e55a12e0bb Mon Sep 17 00:00:00 2001 From: Maciek Sitkowski Date: Fri, 24 Nov 2023 22:56:51 +0100 Subject: [PATCH] add simple gh workflow --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f5d0eaa --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build-and-lint: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v2.4.0 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: Install Dependencies + run: pnpm install + + - name: Lint + run: pnpm lint + + - name: Build + run: pnpm build