From c39c36050af888cd92115b3aa6ebe04969a93baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Correa=20Casablanca?= Date: Sat, 12 Aug 2023 20:21:07 +0200 Subject: [PATCH] ci: enable ci checks --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..f2d1e6a --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + merge_group: + branches: [ main] + +defaults: + run: + working-directory: . + +jobs: + build: + strategy: + matrix: + node-version: [ 16, 18, 20 ] + os: [ubuntu-20.04, ubuntu-22.04, windows-latest, macos-12, macos-11] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - run: pnpm install + - run: pnpm lint + - run: pnpm build + # - run: pnpm test