Added prettier standard to support prettier and use it in combination with standard
[poolifier.git] / .github / workflows / main.yml
1 name: NodeCI
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7 runs-on: ubuntu-latest
8
9 strategy:
10 matrix:
11 node-version: [12.x, 14.x]
12
13 steps:
14 - uses: actions/checkout@v1
15 - name: Use Node.js ${{ matrix.node-version }}
16 uses: actions/setup-node@v1
17 with:
18 node-version: ${{ matrix.node-version }}
19 - name: npm install, build, and test
20 run: |
21 npm ci
22 npm run build --if-present
23 npm run test
24 export COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }}
25 npm run coverage
26 env:
27 CI: true