From aa7894d9f9e6217e931cd4b98a44d1c7f0efab40 Mon Sep 17 00:00:00 2001 From: Skjalg Teig Date: Fri, 17 Nov 2023 09:14:33 +0100 Subject: [PATCH] chore: add github actions check to verify package --- .github/workflows/check.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..ff180da --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,24 @@ +name: Build and test package +on: + push: + branches: [master] + pull_request: + branches: [master] +concurrency: + group: ${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version-file: ".nvmrc" + registry-url: "https://registry.npmjs.org" + cache: "npm" + - run: npm install -g npm + - run: npm ci + # Build to verify + - run: npm run build + - run: npm run test