From 534ab94ddd9980001c48ec13b8d57c87830a8aa6 Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Thu, 7 Nov 2024 12:02:42 +0100 Subject: [PATCH] move local tests to it's own CI file Signed-off-by: Matthias Gatto --- .github/workflows/local_testacc.yml | 36 ++++++++++++++++++++++++++++ .github/workflows/others_testacc.yml | 6 ----- 2 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/local_testacc.yml diff --git a/.github/workflows/local_testacc.yml b/.github/workflows/local_testacc.yml new file mode 100644 index 000000000..b2857a49a --- /dev/null +++ b/.github/workflows/local_testacc.yml @@ -0,0 +1,36 @@ +name: Local Acceptances tests + +on: + pull_request: + branches: + - master + paths: + - '**.go' + - '**.sum' + - '**.mod' + - 'GNUmakefile' + workflow_dispatch: + +jobs: + Local_acceptances_tests: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + - name: Setup Terraform + uses: hashicorp/setup-terraform@v3 + with: + terraform_version: 1.6.5 + terraform_wrapper: false + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 'stable' + - name: local tests + run: | + wget https://github.com/outscale/osc-ricochet-2/releases/download/v0.4.0/osc-ricochet-2_v0.4.0_x86_64-unknown-linux-musl.tar.gz + tar -xvf osc-ricochet-2_v0.4.0_x86_64-unknown-linux-musl.tar.gz + ./ricochet-2 ./ricochet.json & + make test-locally diff --git a/.github/workflows/others_testacc.yml b/.github/workflows/others_testacc.yml index f399ad687..4e92bd44f 100644 --- a/.github/workflows/others_testacc.yml +++ b/.github/workflows/others_testacc.yml @@ -34,12 +34,6 @@ jobs: uses: actions/setup-go@v5 with: go-version: 'stable' - - name: local tests - run: | - wget https://github.com/outscale/osc-ricochet-2/releases/download/v0.4.0/osc-ricochet-2_v0.4.0_x86_64-unknown-linux-musl.tar.gz - tar -xvf osc-ricochet-2_v0.4.0_x86_64-unknown-linux-musl.tar.gz - ./ricochet-2 ./ricochet.json & - make test-locally - name: Build go test run: make test