From 51824d3bb8d0cdf976a4d81d1536e6eda0ea1237 Mon Sep 17 00:00:00 2001 From: Manuel Sabban Date: Thu, 16 Dec 2021 11:06:31 +0100 Subject: [PATCH] add arg to hub func test (#1103) * add arg to hub func test * switch to go 1.17 Co-authored-by: sabban <15465465+sabban@users.noreply.github.com> --- .github/workflows/ci_functests-install.yml | 4 ++-- .github/workflows/ci_go-test.yml | 6 +++--- .github/workflows/ci_hubtest.yml | 6 +++--- .github/workflows/release_publish-package.yml | 8 ++++---- scripts/func_tests/tests_post-install_6hubtests.sh | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci_functests-install.yml b/.github/workflows/ci_functests-install.yml index 6727b9578..815cf8daa 100644 --- a/.github/workflows/ci_functests-install.yml +++ b/.github/workflows/ci_functests-install.yml @@ -21,10 +21,10 @@ jobs: name: Install generated release and perform functional tests runs-on: ubuntu-latest steps: - - name: Set up Go 1.16 + - name: Set up Go 1.17 uses: actions/setup-go@v1 with: - go-version: 1.16 + go-version: 1.17 id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/.github/workflows/ci_go-test.yml b/.github/workflows/ci_go-test.yml index 9ed22f7ac..76bb9f495 100644 --- a/.github/workflows/ci_go-test.yml +++ b/.github/workflows/ci_go-test.yml @@ -52,10 +52,10 @@ jobs: --health-timeout=5s --health-retries=3 steps: - - name: Set up Go 1.16 + - name: Set up Go 1.17 uses: actions/setup-go@v1 with: - go-version: 1.16 + go-version: 1.17 id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -73,4 +73,4 @@ jobs: continue-on-error: true with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: coverage.txt \ No newline at end of file + path-to-lcov: coverage.txt diff --git a/.github/workflows/ci_hubtest.yml b/.github/workflows/ci_hubtest.yml index 1bb5df269..e1dc55e29 100644 --- a/.github/workflows/ci_hubtest.yml +++ b/.github/workflows/ci_hubtest.yml @@ -13,10 +13,10 @@ jobs: name: Hub tests runs-on: ubuntu-latest steps: - - name: Set up Go 1.16 + - name: Set up Go 1.17 uses: actions/setup-go@v1 with: - go-version: 1.16 + go-version: 1.17 id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -68,4 +68,4 @@ jobs: filename: crowdsec_scenarios_badge.json label: Hub Scenarios message: ${{ env.SCENARIOS_COV }} - color: ${{ env.SCENARIO_BADGE_COLOR }} \ No newline at end of file + color: ${{ env.SCENARIO_BADGE_COLOR }} diff --git a/.github/workflows/release_publish-package.yml b/.github/workflows/release_publish-package.yml index fa035a05e..6f0d1e94b 100644 --- a/.github/workflows/release_publish-package.yml +++ b/.github/workflows/release_publish-package.yml @@ -10,10 +10,10 @@ jobs: name: Build and upload binary package runs-on: ubuntu-latest steps: - - name: Set up Go 1.16 + - name: Set up Go 1.17 uses: actions/setup-go@v1 with: - go-version: 1.16 + go-version: 1.17 id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -29,10 +29,10 @@ jobs: name: Build and upload binary package runs-on: ubuntu-latest steps: - - name: Set up Go 1.16 + - name: Set up Go 1.17 uses: actions/setup-go@v1 with: - go-version: 1.16 + go-version: 1.17 id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/scripts/func_tests/tests_post-install_6hubtests.sh b/scripts/func_tests/tests_post-install_6hubtests.sh index 476f0f799..e7e5396e4 100755 --- a/scripts/func_tests/tests_post-install_6hubtests.sh +++ b/scripts/func_tests/tests_post-install_6hubtests.sh @@ -7,6 +7,6 @@ CURRENT_DIR=$(pwd) git clone https://github.com/crowdsecurity/hub.git cd hub/ -${CSCLI} hubtest run --all +${CSCLI} hubtest run --all --clean cd "${CURRENT_DIR}"