Pull Request for 69/merge by TylerJang27 #2
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: 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 | |
- name: Trunk Analytics Uploader | |
uses: ./ | |
with: | |
junit-paths: junit.xml | |
org-slug: trunk | |
token: ${{ secrets.TRUNK_PROD_ORG_API_TOKEN }} | |
allow-missing-junit-files: "false" | |
- name: Trunk Analytics Uploader | |
uses: ./ | |
with: | |
junit-paths: junit.xml | |
org-slug: trunk | |
token: ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }} | |
allow-missing-junit-files: "false" | |
env: | |
TRUNK_PUBLIC_API_ADDRESS: https://api.trunk-staging.io |