Skip to content

0.1.2

0.1.2 #64

Workflow file for this run

name: Run Tests
on: [push, pull_request]
jobs:
test:
name: Test on Node ${{ matrix.node }} on ubuntu-latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [14, 16, 18, 19]
steps:
- name: Clone repo
uses: actions/checkout@v2
- name: Set Node.js version
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Test with Coverage
run: npm run test
- name: Publish on Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ matrix.node }}
parallel: true
report-coverage:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
publish:
needs: report-coverage
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Clone repo
uses: actions/checkout@v2
- name: Set Node.js version
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Check Version
run: ./version.sh
- name: Compile
run: npm run compile
- name: Publish to npm
run: |
cp .npmrc.config .npmrc
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}