Skip to content

Merge pull request #1233 from gotd/dependabot/go_modules/golang.org/x… #3191

Merge pull request #1233 from gotd/dependabot/go_modules/golang.org/x…

Merge pull request #1233 from gotd/dependabot/go_modules/golang.org/x… #3191

Workflow file for this run

name: E2E
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
cache: false
# Note that we deliberately don’t restore GOCACHE.
# That is, we must not cache e2e test results.
- name: Get Go environment
id: go-env
run: echo "::set-output name=modcache::$(go env GOMODCACHE)"
- name: Set up cache
uses: actions/cache@v3
with:
path: ${{ steps.go-env.outputs.modcache }}
key: e2e-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/go.mod') }}
restore-keys: |
e2e-${{ runner.os }}-go-
- name: Install latest mtg proxy
run: go install -v github.com/9seconds/mtg/v2@latest
# Run all tests that start with "TestExternalE2E".
- name: Run tests
run: go test -v -run ^TestExternalE2E ./...
env:
GOTD_TEST_EXTERNAL: 1
GOTD_MTPROXY_ADDR: "127.0.0.1:3128"