Update README.md #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test-e2e | |
on: | |
pull_request: | |
branches: | |
- "**" | |
push: | |
branches: | |
- "main" | |
- "v[0-9]**" | |
workflow_dispatch: | |
jobs: | |
e2e: | |
runs-on: ubuntu-latest | |
timeout-minutes: 25 | |
steps: | |
- | |
name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18 | |
- | |
name: Check out repository code | |
uses: actions/checkout@v3 | |
- | |
name: Get git diff | |
uses: technote-space/get-diff-action@v6.1.1 | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
- | |
name: Get data from build cache | |
uses: actions/cache@v3 | |
with: | |
# In order: | |
# * Module download cache | |
# * Build cache (Linux) | |
# * Build cache (Mac) | |
# * Build cache (Windows) | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
~\AppData\Local\go-build | |
key: ${{ runner.os }}-go-docker-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go-docker-${{ matrix.go-version }}- | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Build e2e image | |
run: make docker-build-debug | |
- | |
name: Test e2e | |
run: make test-e2e-ci |