fix: make fileVariables accessible at an earlier stage #3478
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: | |
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 | |
pkg: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ env.PKG_CACHE_PATH }} | |
key: pkg-cache-${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm run build | |
- run: npm run pkg-linux | |
- run: node src/index.js --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: FORCE_COLOR=1 npx jest --coverage --testTimeout 90000 --verbose | |
- uses: sonarsource/sonarcloud-github-action@v3.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 |