-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cherry-pick #4576 (e2e update) into release-0.27 (release-0.27) (
#4607) Signed-off-by: Rui Chen <[email protected]>
- Loading branch information
1 parent
0a73661
commit a2b1451
Showing
6 changed files
with
52 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,8 @@ jobs: | |
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v2 | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | ||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | ||
id: changes | ||
with: | ||
filters: | | ||
|
@@ -41,12 +41,12 @@ jobs: | |
if: needs.changes.outputs.should-run-tests == 'true' | ||
name: Tests | ||
runs-on: ubuntu-22.04 | ||
container: ghcr.io/runatlantis/testing-env:latest | ||
container: ghcr.io/runatlantis/testing-env:latest@sha256:346fd2028603d7c9369f709023ef993faf60a70ef4c91963f5baa7454196df32 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | ||
|
||
# need to setup go toolchain explicitly | ||
- uses: actions/setup-go@v5 | ||
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
|
@@ -100,3 +100,41 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
e2e-github: | ||
runs-on: ubuntu-latest | ||
# dont run e2e tests on forked PRs | ||
if: github.event.pull_request.head.repo.fork == false | ||
env: | ||
TERRAFORM_VERSION: 1.8.3 | ||
ATLANTISBOT_GITHUB_USERNAME: ${{ secrets.ATLANTISBOT_GITHUB_USERNAME }} | ||
ATLANTISBOT_GITHUB_TOKEN: ${{ secrets.ATLANTISBOT_GITHUB_TOKEN }} | ||
NGROK_AUTH_TOKEN: ${{ secrets.ATLANTISBOT_NGROK_AUTH_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | ||
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
# This version of TF will be downloaded before Atlantis is started. | ||
# We do this instead of setting --default-tf-version because setting | ||
# that flag starts the download asynchronously so we'd have a race | ||
# condition. | ||
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3 | ||
with: | ||
terraform_version: ${{ env.TERRAFORM_VERSION }} | ||
|
||
- name: Setup ngrok | ||
run: | | ||
wget -q -nc https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz | ||
tar -xzf ngrok-v3-stable-linux-amd64.tgz && \ | ||
chmod +x ngrok | ||
./ngrok --help | ||
- name: Setup gitconfig | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "atlantisbot" | ||
- run: | | ||
make build-service | ||
./scripts/e2e.sh |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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