build(deps-dev): bump @types/node from 20.4.6 to 20.4.7 #342
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: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Lint commit message | |
run: npx commitlint --from=HEAD~1 | |
- name: Lint codebase | |
run: npm run lint | |
- name: Check type | |
run: npm run lint:tsc | |
- name: Run action | |
uses: ./ | |
- name: Run tests | |
run: | | |
cc-test-reporter before-build | |
npm run test:ci | |
cc-test-reporter after-build --exit-code $? | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
- name: Build artifact | |
run: npm run build | |
- name: Check Git working tree | |
run: | | |
if [[ $(git diff --stat) != '' ]]; then | |
echo 'Detected uncommitted changes. See status below:' | |
git diff | |
exit 1 | |
fi | |
# action should work on a clean machine without building | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
version: [latest, 0.11.1] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run action | |
uses: ./ | |
with: | |
codeclimate-version: ${{ matrix.version }} | |
cli-name: codeclimate | |
- name: Get binary | |
run: command -v codeclimate | |
- name: Check version | |
if: matrix.os != 'windows-latest' && matrix.version != 'latest' | |
run: | | |
if [[ $(codeclimate --version) != *'${{ matrix.version }}'* ]]; then | |
echo 'Version does not match. See version below:' | |
codeclimate --version | |
exit 1 | |
fi | |
- name: Show help | |
run: codeclimate --help |