Skip to content

Commit

Permalink
move local tests to it's own CI file
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Nov 7, 2024
1 parent 3a13ea2 commit 534ab94
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/local_testacc.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions .github/workflows/others_testacc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 534ab94

Please sign in to comment.