1 | # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
3 |
|
4 | name: koa-views
|
5 |
|
6 | on: [push]
|
7 |
|
8 | jobs:
|
9 | build:
|
10 | runs-on: ubuntu-latest
|
11 | strategy:
|
12 | matrix:
|
13 | node: ['10', '12', '14']
|
14 | steps:
|
15 | - uses: actions/checkout@v2
|
16 | - uses: actions/setup-node@v1
|
17 | with:
|
18 | node-version: ${{ matrix.node }}
|
19 | - run: npm ci
|
20 | - run: npm test
|