expand values in rules.exists (#1470) #3828
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: | |
tags-ignore: | |
- '**' | |
branches: | |
- master | |
pull_request: | |
env: | |
PKG_CACHE_PATH: .pkg | |
jobs: | |
yamllint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ibiqlik/action-yamllint@v3 | |
with: | |
strict: true | |
smoke-test: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'npm' | |
- uses: actions/[email protected] | |
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-24.04 | |
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-24.04 | |
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-24.04 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- uses: actions/[email protected] | |
with: | |
cache: 'npm' | |
- run: npm ci | |
- name: Run Tests | |
run: npm run coverage | |
- uses: sonarsource/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
if: ${{ env.SONAR_TOKEN != '' }} | |
code-ql: | |
name: CodeQL | |
runs-on: ubuntu-24.04 | |
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 |