This repository was archived by the owner on Apr 7, 2025. It is now read-only.
Merge pull request #310 from gotd/dependabot/go_modules/github.com/og… #90
This file contains hidden or 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: e2e | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: stable | |
| cache: false | |
| - name: Get Go environment | |
| id: go-env | |
| shell: bash | |
| run: | | |
| echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV | |
| echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV | |
| - name: Set up cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ${{ env.cache }} | |
| ${{ env.modcache }} | |
| key: ${{ runner.os }}-${{ runner.arch }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ runner.arch }}-go- | |
| - name: Run test | |
| env: | |
| E2E: "1" | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_JOB_ID: ${{ github.job }} | |
| GITHUB_RUN_ID: ${{ github.run_id }} | |
| GITHUB_RUN_ATTEMPT: ${{ github.run_attempt }} | |
| run: go test -timeout 15m -v -run TestIntegration ./... |