Add (possibly out of date) docs on bindings #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
- push | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
# dependencies | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-node- | |
- uses: actions/checkout@v2 | |
- run: git clone --branch=gh-pages --depth=1 "https://za-creature:${{ github.token }}@github.com/${{ github.repository }}.git" coverage/ | |
- run: npm install | |
# run tests test and generate coverage report | |
- run: npm run lint | |
- run: npm run cover | |
# update coverage bage status | |
- run: echo COVERAGE=$(npm run report | grep Statements | awk '{print $3}') >> $GITHUB_ENV | |
- uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.GIST_TOKEN }} | |
gistID: 1e4664346f422ed78c1cc07a6a5da580 | |
filename: bliss-cov.json | |
label: coverage | |
message: ${{ env.COVERAGE }} | |
color: green | |
# publish coverage | |
- run: git config --global user.email "[email protected]" | |
- run: git config --global user.name "GitHub Actions" | |
- run: cd coverage && git add . && git commit -m 'Update coverage' && git push |