2021-06-29 15:19:24 +02:00
|
|
|
name: Run tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-06-29 15:25:22 +02:00
|
|
|
branches: [ master, dev ]
|
2021-06-29 15:19:24 +02:00
|
|
|
pull_request:
|
|
|
|
branches: [ master, dev ]
|
|
|
|
|
2022-10-02 20:16:13 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-06-29 15:19:24 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
2022-10-02 20:16:13 +02:00
|
|
|
permissions:
|
|
|
|
checks: write # for coverallsapp/github-action to create new checks
|
|
|
|
contents: read # for actions/checkout to fetch code
|
2021-06-29 15:19:24 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-05-03 15:25:27 +02:00
|
|
|
node-version: [14, 16]
|
2021-06-29 15:19:24 +02:00
|
|
|
steps:
|
2022-10-14 11:02:01 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-29 15:19:24 +02:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2022-10-14 11:02:01 +02:00
|
|
|
uses: actions/setup-node@v3
|
2021-06-29 15:19:24 +02:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
npm run test
|
2023-04-28 18:17:40 +02:00
|
|
|
# - name: Publish to coveralls.io
|
|
|
|
# if: ${{ matrix.node-version == 14 }}
|
|
|
|
# uses: coverallsapp/github-action@v1.1.2
|
|
|
|
# with:
|
|
|
|
# github-token: ${{ github.token }}
|