mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-05 08:48:31 +00:00
feat(e2e): migrate off circleci (#4576)
Signed-off-by: Rui Chen <rui@chenrui.dev> Co-authored-by: Christian Winther <jippignu@gmail.com>
This commit is contained in:
38
.github/workflows/test.yml
vendored
38
.github/workflows/test.yml
vendored
@@ -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.repository == 'runatlantis/atlantis'
|
||||
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 "maintainers@runatlantis.io"
|
||||
git config --global user.name "atlantisbot"
|
||||
|
||||
- run: |
|
||||
make build-service
|
||||
./scripts/e2e.sh
|
||||
|
||||
Reference in New Issue
Block a user