This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
chore: Update GitHub Action for creating GitHub Releases #2349
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: [pull_request, push] | |
jobs: | |
'Test': | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [20.x] | |
steps: | |
- name: 'Checkout repository' | |
uses: actions/checkout@v4 | |
- name: 'Use Node.js v${{ matrix.node-version }}' | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 'Install, lint, and test' | |
run: | | |
yarn install | |
yarn lint | |
yarn test | |
if: | | |
contains(github.event.commits[0].message, '[skip ci]') == false && | |
contains(github.event.commits[0].message, '[ci skip]') == false | |
- name: 'Upload coverage reports to Codecov' | |
uses: codecov/codecov-action@v4.1.1 | |
with: | |
fail_ci_if_error: false | |
files: ./coverage/lcov.info | |
flags: unittests |