Skip to content

Commit

Permalink
Merge pull request #6798 from mook-as/ci/bats/windows-new-network
Browse files Browse the repository at this point in the history
CI: BATS: Add networking tunnel toggle
  • Loading branch information
jandubois authored May 1, 2024
2 parents a5ea0ed + 949bd9a commit ac8cc45
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/bats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ on:
description: Package run ID override; leave empty to use latest.
default: ''
type: string
rd-use-networking-tunnel:
description: Use networking tunnel (on Windows)
default: false
type: boolean
schedule:
- cron: '0 8 * * 1-5' # 8AM UTC weekdays as a baseline

Expand Down Expand Up @@ -204,16 +208,17 @@ jobs:
--report-formatter tap
'tests/${{ steps.normalize.outputs.test }}'
env:
BATS_COMMAND: ${{ env.BATS_COMMAND }}
GITHUB_TOKEN: ${{ github.token }}
LOGS_DIR: ${{ env.LOGS_DIR }}
RD_CAPTURE_LOGS: "true"
RD_CONTAINER_ENGINE: ${{ matrix.engine }}
RD_TAKE_SCREENSHOTS: "true"
RD_TRACE: "true"
RD_USE_GHCR_IMAGES: "true"
RD_USE_RAMDISK: "true"
RD_USE_WINDOWS_EXE: "${{ runner.os == 'Windows' }}"
BATS_COMMAND: ${{ env.BATS_COMMAND }}
GITHUB_TOKEN: ${{ github.token }}
LOGS_DIR: ${{ env.LOGS_DIR }}
RD_CAPTURE_LOGS: "true"
RD_CONTAINER_ENGINE: ${{ matrix.engine }}
RD_TAKE_SCREENSHOTS: "true"
RD_TRACE: "true"
RD_USE_GHCR_IMAGES: "true"
RD_USE_RAMDISK: "true"
RD_USE_WINDOWS_EXE: "${{ runner.os == 'Windows' }}"
RD_USE_NETWORKING_TUNNEL: "${{ runner.os == 'Windows' && inputs.rd-use-networking-tunnel == true }}"
WSLENV: "\
GITHUB_TOKEN:\
RD_CAPTURE_LOGS:\
Expand All @@ -223,6 +228,7 @@ jobs:
RD_USE_GHCR_IMAGES:\
RD_USE_RAMDISK:\
RD_USE_WINDOWS_EXE:\
RD_USE_NETWORKING_TUNNEL:\
"
working-directory: bats
timeout-minutes: 120
Expand Down

0 comments on commit ac8cc45

Please sign in to comment.