Skip to content

chore(deps): update sonarsource/sonarcloud-github-action action to v4 #3786

chore(deps): update sonarsource/sonarcloud-github-action action to v4

chore(deps): update sonarsource/sonarcloud-github-action action to v4 #3786

Workflow file for this run

---
name: build
on:
push:
tags-ignore:
- '**'
branches:
- master
pull_request:
env:
PKG_CACHE_PATH: .pkg
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ibiqlik/action-yamllint@v3
with:
strict: true
smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- uses: actions/cache@v4
with:
path: ${{ env.PKG_CACHE_PATH }}
key: pkg-cache-${{ matrix.node-version }}
- run: npm ci
- run: npm run esbuild
- run: npm run pkg-linux
- run: node bin/index.cjs --version
- run: bin/linux/gitlab-ci-local --version
- run: bin/linux/gitlab-ci-local --help
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
- run: npm ci
- run: npm run lint
unused-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
- run: npm ci
- run: npx depcheck --ignores depcheck
jest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
cache: 'npm'
- run: npm ci
- name: Run Tests
run: npm run coverage
- uses: sonarsource/sonarcloud-github-action@v4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: ${{ env.SONAR_TOKEN != '' }}
code-ql:
name: CodeQL
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'typescript'
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3