build(deps-dev): bump prettier from 3.4.2 to 3.5.0 in the prettier group #225
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: test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: npm ci --prefer-offline | |
- name: Lint codebase | |
run: npm run lint | |
- name: Check type | |
run: npm run lint:tsc | |
- name: Setup Code Climate | |
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 }} | |
# action should work on a clean machine without building | |
integration: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13, windows-latest] | |
version: [latest, 0.11.1] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run action | |
uses: ./ | |
with: | |
codeclimate-version: ${{ matrix.version }} | |
cli-name: codeclimate | |
- name: Locate 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 |