diff --git a/.github/workflows/task_acceptance_tests.yaml b/.github/workflows/task_acceptance_tests.yaml index 29e39d20..22361dbf 100644 --- a/.github/workflows/task_acceptance_tests.yaml +++ b/.github/workflows/task_acceptance_tests.yaml @@ -22,28 +22,38 @@ jobs: runs-on: 'ubuntu-latest' steps: - + - name: Connect to Twingate - uses: twingate/github-action@v1 + uses: twingate/github-action@v1.5 with: service-key: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }} + env: + TWINGATE_LOG_LEVEL: debug - - name: Checkout current PR code - uses: actions/checkout@v4 - - - name: Install docker - uses: docker/setup-buildx-action@v1 - id: buildx - with: - install: true - - - name: Install ruby version ${{ env.ruby_version }} - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ env.ruby_version }} - bundler-cache: true - - - name: Run task acceptance tests + - name: Test connectivity after Twingate run: | - cd task_spec - bundle exec rake task_acceptance + echo "Testing connection..." + curl -v --connect-timeout 10 https://artifactory.delivery.puppetlabs.net/ || echo "Connection failed" + + # - name: Add delay for network connection + # run: sleep 30 + + # - name: Checkout current PR code + # uses: actions/checkout@v4 + + # - name: Install docker + # uses: docker/setup-buildx-action@v1 + # id: buildx + # with: + # install: true + + # - name: Install ruby version ${{ env.ruby_version }} + # uses: ruby/setup-ruby@v1 + # with: + # ruby-version: ${{ env.ruby_version }} + # bundler-cache: true + + # - name: Run task acceptance tests + # run: | + # cd task_spec + # bundle exec rake task_acceptance