File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed
Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ jobs:
1616 golangci-lint :
1717 runs-on : ubuntu-latest
1818 steps :
19- - name : setup golang
20- uses : actions/setup-go@v3
21- with :
22- go-version : ' ^1.18'
23-
2419 - name : checkout repository
2520 uses : actions/checkout@v3
2621 with :
2722 fetch-depth : 0
2823
24+ - name : setup golang
25+ uses : actions/setup-go@v4
26+ with :
27+ go-version : ' ^1.19'
28+
2929 - name : Run golangci-lint
30- uses : golangci/golangci-lint-action@v3.2 .0
30+ uses : golangci/golangci-lint-action@v3.6 .0
3131 with :
32- version : v1.45.2
32+ skip-cache : true # actions/setup-go from v4 handles caching for us
Original file line number Diff line number Diff line change 3333 with :
3434 fetch-depth : 0
3535
36+ # This step is needed to avoid running the integration tests requiring an enterprise license
37+ # if the secrets are not available.
38+ - name : Detect if we should run test cases requring an enterprise license (have required secrets)
39+ id : detect_if_should_run_enterprise
40+ run : echo "result=${{ secrets.PULP_PASSWORD != '' }}" >> $GITHUB_OUTPUT
41+
42+ - name : Set environment variable to enable test cases requiring an enterprise license
43+ if : steps.detect_if_should_run_enterprise.outputs.result == 'true'
44+ id : set_run_enterprise_env
45+ run : echo "KTF_TEST_RUN_ENTERPRISE_CASES=true" >> $GITHUB_ENV
46+
47+ - uses : Kong/kong-license@master
48+ if : steps.detect_if_should_run_enterprise.outputs.result == 'true'
49+ id : license
50+ with :
51+ password : ${{ secrets.PULP_PASSWORD }}
52+
3653 - name : run unit tests
3754 run : make test.unit
3855
You can’t perform that action at this time.
0 commit comments