Skip to content

Commit

Permalink
Add GitHub action for testing PR to main
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmeu committed Dec 1, 2023
1 parent a724bfa commit fc0c7f8
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
testing:
name: Testing on Node v${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [20]
steps:
- name: Checking out
uses: actions/checkout@v3

- name: Use Node.js v${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install NPM dependencies
run: npm ci

- name: Check lint
run: npm run lint

- name: Check build
run: npm run build

- name: Run NPM tests
run: npm run test

0 comments on commit fc0c7f8

Please sign in to comment.