Pull Request for 79/merge by gnalh #14
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: Pull Request | |
run-name: Pull Request for ${{ github.ref_name }} by ${{ github.actor }} | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
permissions: read-all | |
on: | |
pull_request: {} | |
jobs: | |
trunk_code_quality_runner: | |
name: Trunk Code Quality runner [linux] | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
- name: Install pnpm | |
uses: trunk-io/trunk-action/install@v1 | |
with: | |
tools: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Trunk Check | |
uses: trunk-io/trunk-action@v1 | |
test_and_upload: | |
name: Test and Upload | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
- name: Install pnpm | |
uses: trunk-io/trunk-action/install@v1 | |
with: | |
tools: pnpm | |
- name: Run tests | |
shell: bash | |
run: | | |
pnpm install | |
pnpm test | |
# Do NOT continue-on-error for these uploads | |
- name: Trunk Analytics Uploader (Prod) | |
uses: ./ | |
with: | |
junit-paths: junit.xml | |
org-slug: trunk | |
token: ${{ secrets.TRUNK_PROD_ORG_API_TOKEN }} | |
allow-missing-junit-files: "false" | |
# Forces the uploader to not continue-on-error and use the CLI exit code | |
quarantine: "true" | |
- name: Trunk Analytics Uploader (Staging) | |
uses: ./ | |
with: | |
junit-paths: junit.xml | |
org-slug: trunk-staging-org | |
token: ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }} | |
allow-missing-junit-files: "false" | |
# Forces the uploader to not continue-on-error and use the CLI exit code | |
quarantine: "true" | |
env: | |
TRUNK_PUBLIC_API_ADDRESS: https://api.trunk-staging.io |