diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index c54ff677..a055010e 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -15,6 +15,17 @@ jobs: uses: dell/common-github-actions/go-code-formatter-linter-vetter@main with: directories: ./... + test: + name: Run Go unit tests and check package coverage + runs-on: ubuntu-latest + steps: + - name: Checkout csi-powerstore + uses: actions/checkout@v2 + - name: Run unit tests and check package coverage + uses: dell/common-github-actions/go-code-tester@main + with: + threshold: 65 + test-folder: ./pkg go_security_scan: name: Run gosec runs-on: ubuntu-latest @@ -24,8 +35,8 @@ jobs: - name: Run gosec to check for security vulnerabilities uses: dell/common-github-actions/gosec-runner@main with: - exclude-dir: "tests/e2e" - directories: "./..." + exclude-dir: tests/e2e + directories: ./... malware_security_scan: name: Malware Scanner runs-on: ubuntu-latest diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index e7aad32e..9ceed48f 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -16,15 +16,15 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: "1.20" + go-version: "1.21" cache: false - name: Checkout the code - uses: actions/checkout@v3.2.0 + uses: actions/checkout@v4 - name: Vendor packages run: | go mod vendor - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.53 + version: v1.55 skip-cache: true