chore(dependencies): CCR-1823 bump dependencies to resolve vulnerabilities #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Quality Gate | |
env: | |
COVERAGE_THRESH_PCT: 0 | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
jobs: | |
ci_gate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
- name: Setup unit test | |
run: go install github.com/klmitch/[email protected] | |
- name: Build check | |
run: go build | |
- name: Run unit test with coverage | |
run: go test --coverprofile cover.out ./... | |
- name: Check coverage meets threshold | |
run: overcover --coverprofile cover.out ./... --threshold ${{ env.COVERAGE_THRESH_PCT }} |