diff --git a/.github/workflows/test-add-gitlab.yml b/.github/workflows/test-add-gitlab.yml new file mode 100644 index 0000000000..8db4e0dd0b --- /dev/null +++ b/.github/workflows/test-add-gitlab.yml @@ -0,0 +1,55 @@ +name: tester + +on: + push: + branches: + - 'add_gitlab_e2e_tests' + pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review + branches: + - 'add_gitlab_e2e_tests' + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + e2e-gitlab: + 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 + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + - uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5 + with: + go-version-file: go.mod + - run: | + echo "Hello!" + # 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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b66972876..4664877375 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -138,38 +138,3 @@ jobs: - run: | make build-service ./scripts/e2e.sh - e2e-gitlab: - 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 - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - - uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5 - with: - go-version-file: go.mod - - run: | - echo "Hello!" - # 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