Skip to content

Commit

Permalink
Introduce action for e2e setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bermuell committed Aug 10, 2023
1 parent 704e35d commit b34ad50
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
22 changes: 22 additions & 0 deletions .github/actions/action-e2e-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Setup environment'
description: 'Setup environment for E2E tests'
inputs:
go-version:
description: 'Version of go to be used'
required: true
default: '1.20'
runs:
using: "composite"
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ inputs.go-version}}
- uses: actions/checkout@v3
- name: Checkout LFS objects
run: git lfs checkout

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.go-version}} # The Go version to download (if necessary) and use.

12 changes: 2 additions & 10 deletions .github/workflows/manual-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- uses: actions/checkout@v3
- name: Checkout LFS objects
run: git lfs checkout
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20" # The Go version to download (if necessary) and use.
- name: E2E Setup
uses: actions/action-e2e-setup
- name: E2E happy-path test
run: go run ./tests/e2e/... --tc happy-path
changeover-test:
Expand Down

0 comments on commit b34ad50

Please sign in to comment.