Skip to content

Commit

Permalink
Fix Windows PR Tests (#465)
Browse files Browse the repository at this point in the history
I forgot to add the path override in the first pass. Also bumps timeout
and upgrades trunk
  • Loading branch information
TylerJang27 authored Sep 7, 2023
1 parent e3a0c65 commit 57c8b28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ jobs:
with:
linter-version: Latest
sourcery-token: ${{ secrets.TRUNK_SOURCERY_TOKEN }}
cli-path: ${{ github.workspace }}\trunk.ps1
append-args: ${{needs.detect_changes.outputs.linters-files }}
trunk-token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}

Expand All @@ -215,6 +216,7 @@ jobs:
uses: ./.github/actions/tool_tests
with:
append-args: ${{needs.detect_changes.outputs.tools-files }}
cli-path: ${{ github.workspace }}\trunk.ps1
trunk-token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}

# Run repo healthcheck tests
Expand Down
2 changes: 1 addition & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 0.1

# version used for local trunk runs and testing
cli:
version: 1.14.2
version: 1.15.0

api:
address: api.trunk-staging.io:8443
Expand Down
4 changes: 3 additions & 1 deletion tests/repo_tests/config_check.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from "fs";
import path from "path";
import { setupDriver } from "tests";
import { REPO_ROOT } from "tests/utils";
import { osTimeoutMultiplier, REPO_ROOT } from "tests/utils";

// Avoid strictly typing composite config
// trunk-ignore-all(eslint/@typescript-eslint/no-unsafe-assignment)
Expand All @@ -10,6 +10,8 @@ import { REPO_ROOT } from "tests/utils";
// trunk-ignore-all(eslint/@typescript-eslint/no-unsafe-argument)
// trunk-ignore-all(eslint/@typescript-eslint/no-unsafe-return)

jest.setTimeout(300000 * osTimeoutMultiplier); // 300s or 900s

/**
* This test runs 'trunk config print' from the root of the repository to verify a healthy config.
* This serves as a general, basic healthcheck and asserts that all definitions resolve correctly,
Expand Down

0 comments on commit 57c8b28

Please sign in to comment.