Skip to content

Commit

Permalink
ci: build and test on pr (#34)
Browse files Browse the repository at this point in the history
closes #32
  • Loading branch information
lsndr authored Sep 8, 2023
1 parent ceed09f commit 14e1678
Show file tree
Hide file tree
Showing 4 changed files with 1,792 additions and 2,825 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build & Test

on:
pull_request:
branches: [master, next, "*.x", beta, alpha]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- node: 18.x
script: lint
- node: 18.x
script: build
- node: 16.x
script: test
- node: 18.x
script: test
- node: 20.x
script: test
steps:
- uses: actions/checkout@v2

- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: ${{ format('Run {0}', matrix.script) }}
run: npm run ${{ matrix.script }}
Loading

0 comments on commit 14e1678

Please sign in to comment.