Skip to content

Nightly E2E tests

Nightly E2E tests #658

Workflow file for this run

name: Nightly E2E tests
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
env:
GOPROXY: https://proxy.golang.org/
jobs:
# resolve-versions allows us to show resolved Go versions in job titles
# for added clarity and quick orientation in a long list of past jobs
resolve-versions:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
-
name: Resolve old stable version
id: oldstable
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: oldstable
-
name: Resolve stable version
id: stable
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: stable
outputs:
oldstable: ${{ steps.oldstable.outputs.go-version }}
stable: ${{ steps.stable.outputs.go-version }}
e2e-tests:
name: e2e-tests (${{ matrix.os }}, go ${{ matrix.go_version }})
needs: resolve-versions
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
go_version:
- ${{ needs.resolve-versions.outputs.oldstable }}
- ${{ needs.resolve-versions.outputs.stable }}
steps:
-
name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
-
name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go_version }}
-
name: Run E2E tests
env:
TFEXEC_E2ETEST_VERSIONS: refs/heads/main
run: go test -race -timeout=30m -v ./tfexec/internal/e2etest