Skip to content

Commit

Permalink
run trunk check action on PRs (#519)
Browse files Browse the repository at this point in the history
As we no longer run check-on-PRs on forks, we're going back to the
legacy trunk action for checks in this PR.

After this merges, we will set the new job as required and remove the
required status from check-on-PRs.

---------

Co-authored-by: Samuel Lijin <[email protected]>
  • Loading branch information
puzzler7 and sxlijin authored Oct 11, 2023
1 parent 8be101f commit e16cead
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,25 @@ jobs:
needs.detect_changes.outputs.tools-files }}
trunk-token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}

trunk_check_runner:
name: Trunk Check runner [linux]
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
checks: write

steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true

- name: Trunk Check
# trunk-ignore(semgrep/yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha.third-party-action-not-pinned-to-commit-sha)
uses: trunk-io/trunk-action@main
env:
TRUNK_GITHUB_CHECK_RUN_TITLE: Trunk Check

# Run Windows tests for modified linters and tools
# TODO(Tyler): When this is more stabilized and we want to gate on it, we can make it part of the matrix above.
windows_linter_tests:
Expand Down

0 comments on commit e16cead

Please sign in to comment.