Skip to content

build(deps-dev): bump @types/node from 22.1.0 to 22.2.0 #1488

build(deps-dev): bump @types/node from 22.1.0 to 22.2.0

build(deps-dev): bump @types/node from 22.1.0 to 22.2.0 #1488

Workflow file for this run

name: build
on: [push, pull_request]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- 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 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: Git commit and push
if: github.actor == 'dependabot[bot]'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'feat: update build artifacts'
- 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:
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