Fix interface changes of json-colorize dependency #540
Workflow file for this run
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: pi-gen-action-unit-tests | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
- 'renovate.json' | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
npm-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # fetch full history for Git tests | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- run: npm ci | |
- run: npm test | |
- uses: codecov/codecov-action@v4 | |
with: | |
files: coverage/clover.xml,coverage/lcov.info | |
flags: unittests | |
- run: npm run lint | |
- run: npm run format-check | |
- run: npm run update-readme | |
- name: Ensure no Git diff | |
run: | | |
GIT_STATUS=$(git status -s) | |
echo $GIT_STATUS | |
test -z "$GIT_STATUS" | |
shellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ludeeus/action-shellcheck@master |