Skip to content

Commit

Permalink
chore: add github actions check to verify package
Browse files Browse the repository at this point in the history
  • Loading branch information
skjalgepalg committed Nov 17, 2023
1 parent 3a516e8 commit aa7894d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit aa7894d

Please sign in to comment.