release: v1.0.0 #1451
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 2 * * 5' | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: 'Reason' | |
required: false | |
default: 'Manual trigger' | |
jobs: | |
Tests: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
env: | |
# avoid fail on warnings | |
CI: false | |
- name: Test | |
run: npm test | |
- name: Coverage | |
run: npm test -- --coverage | |
- name: Build | |
run: npm run build | |
env: | |
# avoid fail on warnings | |
CI: false | |