feat: updated go version to 1.25.3, updated dependencies and workflow config #2706
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
| # | |
| # Copyright Gen Digital Inc. All Rights Reserved. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| name: "orb ci" | |
| env: | |
| GO_VERSION: 1.25 | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| SemanticPullRequest: | |
| name: Semantic Pull Request Check | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: amannn/action-semantic-pull-request@v4 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| Checks: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Go 1.25 | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.25' | |
| - name: Run checks | |
| run: | | |
| echo $PATH | |
| go env | |
| echo ${{ github.workspace }} | |
| make checks | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| UnitTest: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Setup Go 1.25 | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.25' | |
| id: go | |
| - uses: actions/checkout@v3 | |
| - name: Run unit test | |
| timeout-minutes: 15 | |
| run: make unit-test | |
| - name: Upload coverage to Codecov | |
| timeout-minutes: 10 | |
| uses: codecov/codecov-action@v3.1.6 | |
| with: | |
| file: ./coverage.out |