Sfoglia il codice sorgente

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>
Manuel Sabban 3 anni fa
parent
commit
51824d3bb8

+ 2 - 2
.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

+ 3 - 3
.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
+        path-to-lcov: coverage.txt

+ 3 - 3
.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 }}
+        color: ${{ env.SCENARIO_BADGE_COLOR }}

+ 4 - 4
.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

+ 1 - 1
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}"