Skip to content

Commit

Permalink
wire up secrets for preflight tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdfly committed May 29, 2023
1 parent cf57425 commit 327c8eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
branches: [master, ci-preflight]

jobs:
test:
preflight-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,4 +26,8 @@ jobs:
id: go-version
run: echo "name=version::$(go env GOVERSION)" >> $GITHUB_OUTPUT
- name: Run preflight tests
env:
FLY_PREFLIGHT_TEST_ACCESS_TOKEN: ${{ secrets.FLYCTL_PREFLIGHT_CI_FLY_API_TOKEN }}
FLY_PREFLIGHT_TEST_FLY_ORG: flyctl-ci-preflight
FLY_PREFLIGHT_TEST_FLY_REGIONS: iad bom syd
run: make ci-preflight
1 change: 1 addition & 0 deletions scripts/report-ci-preflight-results/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

func main() {
if err := run(); err != nil {
time.Sleep(50 * time.Millisecond) // let stdout flush
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
Expand Down

0 comments on commit 327c8eb

Please sign in to comment.