Skip to content

Commit

Permalink
Add GitHub action to lint, build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelmegitt committed Jul 15, 2024
1 parent 01a3f9f commit 18af607
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build 🛠️

on:
workflow_dispatch: # can call manually
push:
branches:
- master
pull-request:

jobs:
test:
name: Run the tests
strategy:
matrix:
node-version: ['18.x', '20.x']

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm run test

0 comments on commit 18af607

Please sign in to comment.