use jsonc-parser to parse json files #462
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] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16.x, 18.x, 20.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup git | |
if: matrix.os == 'windows-latest' | |
run: | | |
git config core.symlinks true | |
git reset --hard | |
- name: ${{ matrix.os }} / Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install, build, and test | |
run: | | |
npm ci | |
npm run compile | |
npm run component | |
npm run depcheck | |
npm run depcheck-json | |
npm run lint | |
npm run prettier-check | |
npm run test-coverage | |
env: | |
CI: true | |
- uses: codecov/codecov-action@v1 | |
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '12.x' | |
with: | |
file: ./coverage/coverage.lcov | |
name: codecov-umbrella | |
fail_ci_if_error: false |