1 # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
6 on: [push, pull_request]
11 runs-on: ubuntu-latest
18 - uses: actions/checkout@v2
19 - name: Use Node.js ${{ matrix.node-version }}
20 uses: actions/setup-node@v2
22 node-version: ${{ matrix.node-version }}
25 - run: npm run build --if-present
27 - run: npm run coverage --if-present
29 uses: coverallsapp/github-action@master
31 github-token: ${{ secrets.GITHUB_TOKEN }}