This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
add badges to README.md #23
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: build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CI: true | |
jobs: | |
build: | |
environment: production_environment | |
name: Node ${{ matrix.node }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# node: [12, 14] | |
node: [14] | |
# os: [ubuntu-latest, windows-latest] | |
os: [ubuntu-latest] | |
steps: | |
- name: ♻️ Clone repository | |
uses: actions/checkout@v2 | |
- name: 🔖 Set Node.js version | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: ⬇️ Install npm dependencies | |
run: npm install # switch to `npm ci` when Node.js 6 support is dropped | |
- name: ✅ Run tests | |
run: npm run test | |
- name: 🏗️ Build | |
run: npm run build | |
- name: 🌪️ Publish to coveralls.io | |
uses: coverallsapp/github-action@v1.1.2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |