From 1eb7c13a648b9073d7ed85e24b0052fc7ccd5e40 Mon Sep 17 00:00:00 2001 From: jankapunkt Date: Thu, 25 Jul 2024 10:48:02 +0200 Subject: [PATCH] ci: add testsuite workflow --- .github/workflows/testsuite.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/testsuite.yml diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml new file mode 100644 index 0000000..b9a79c4 --- /dev/null +++ b/.github/workflows/testsuite.yml @@ -0,0 +1,33 @@ +# the test suite runs the tests (headless, server+client) for multiple Meteor releases +name: Test suite +on: + push: + branches: + - master + pull_request: + +jobs: + lint: + name: Javascript standard lint + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: cache dependencies + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-20-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node-20- + + - run: | + npm ci + npm run lint + npm run pre-commit