Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaju authored Aug 4, 2021
1 parent 9683a83 commit 907b159
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,37 @@ on:
branches: [master, main]
tags:
- "v*.*.*"
pull_request:
branches: [master, main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:

run_tests_on_nodejs:
name: run tests on nodejs
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test
- name: check coverage
if: ${{ success() }}
run: npm run check-coverage

docker:
needs: run_tests_on_nodejs
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 907b159

Please sign in to comment.