From 63c64c3cf15dad018d3bf0d28017db9992eca1b1 Mon Sep 17 00:00:00 2001 From: Ibrahim Umar Date: Sat, 30 Dec 2023 10:49:35 +0100 Subject: [PATCH] Fix action --- .github/pr-check.yml | 14 ------------ .github/workflows/custom.yml | 42 ++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 14 deletions(-) delete mode 100644 .github/pr-check.yml create mode 100644 .github/workflows/custom.yml diff --git a/.github/pr-check.yml b/.github/pr-check.yml deleted file mode 100644 index deade1b3ee8d..000000000000 --- a/.github/pr-check.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: Run PR-check - -jobs: - pr-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 - with: - go-version-file: ./.go-version - - run: bash scripts/gogetcookie.sh - - run: make tools - - run: make pr-check \ No newline at end of file diff --git a/.github/workflows/custom.yml b/.github/workflows/custom.yml new file mode 100644 index 000000000000..6c41c00d4f3f --- /dev/null +++ b/.github/workflows/custom.yml @@ -0,0 +1,42 @@ +--- +name: Run Relevant Checks + +on: [push] + +jobs: + acceptance: + name: Acceptance Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - uses: hashicorp/setup-terraform@v3 + with: + terraform_version: '1.6.*' + terraform_wrapper: false + - run: make tools + - run: make acctests + env: + TF_ACC: '1' + TESTARGS: '-parallel=1 -run=TestAccContainerAppEnvironment_' + SERVICE: 'containerapps' + TESTTIMEOUT: '60m' + ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }} + ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }} + ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }} + ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }} + ARM_TEST_LOCATION: ${{ secrets.ARM_TEST_LOCATION }} + ARM_TEST_LOCATION_ALT: ${{ secrets.ARM_TEST_LOCATION_ALT }} + pr-check: + name: PR checks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - run: make tools + - run: make pr-check + - run: git status \ No newline at end of file