[Snyk] Security upgrade alpine from 3.16 to 3.22.2 #523
This file contains hidden or 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: Unit Tests and Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| lint: | |
| environment: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| go-version: 1.22 | |
| check-latest: true | |
| cache: true | |
| - name: Print the version of golang | |
| run: go version | |
| # - name: Run golangci-lint | |
| # uses: golangci/[email protected] | |
| # with: | |
| # skip-pkg-cache: true | |
| # args: --timeout=5m | |
| build_and_unit_test: | |
| environment: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| go-version: 1.22 | |
| check-latest: true | |
| cache: true | |
| - name: Print the version of golang | |
| run: go version | |
| - name: Run unit tests with code coverage | |
| run: make test | |
| - name: Build | |
| run: make build | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: ./cover.out |