massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / flatted / .github / workflows / node.js.yml
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
3
4 name: build
5
6 on: [push, pull_request]
7
8 jobs:
9   build:
10
11     runs-on: ubuntu-latest
12
13     strategy:
14       matrix:
15         node-version: [16]
16
17     steps:
18     - uses: actions/checkout@v2
19     - name: Use Node.js ${{ matrix.node-version }}
20       uses: actions/setup-node@v2
21       with:
22         node-version: ${{ matrix.node-version }}
23         cache: 'npm'
24     - run: npm ci
25     - run: npm run build --if-present
26     - run: npm test
27     - run: npm run coverage --if-present
28     - name: Coveralls
29       uses: coverallsapp/github-action@master
30       with:
31         github-token: ${{ secrets.GITHUB_TOKEN }}