Updating actions/upload-artifacts to v4 due to deprecation on Nov 30t… #75
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: Qodana | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- "development" | |
jobs: | |
qodana: | |
name: Run Qodana and Test | |
runs-on: ubuntu-latest | |
environment: "Hawk Test" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: ^9.4.0 | |
run_install: false | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 20.* | |
cache: 'pnpm' | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test | |
env: | |
HAWK_USERNAME: ${{ secrets.HAWK_USERNAME }} | |
HAWK_PASSWORD: ${{ secrets.HAWK_PASSWORD }} | |
HAWK_DISTRICT: ${{ secrets.HAWK_DISTRICT }} | |
HAWK_PLATFORM: ${{ secrets.HAWK_PLATFORM }} | |
HAWK_ACCOUNT: ${{ secrets.HAWK_ACCOUNT }} | |
- name: Archive coverage data | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jest-coverage-data | |
path: .qodana/code-coverage | |
- name: 'Qodana Scan' | |
uses: JetBrains/[email protected] | |
env: | |
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | |
with: | |
args: --baseline,qodana.sarif.json |