feat(core-api): upgrade go to 1.23 (#1095) #126
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: core-api ci | |
on: | |
push: | |
branches: [ master, pre_*, ft_*, release/* ] | |
paths: ['src/core-api/**'] | |
pull_request: | |
branches: [ master, pre_*, ft_*, release/* ] | |
paths: ['src/core-api/**'] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.23' | |
cache-dependency-path: src/core-api/go.sum | |
- name: Build | |
run: make build | |
working-directory: src/core-api | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.61.0 | |
working-directory: src/core-api | |
- name: Aqua Security Trivy | |
uses: aquasecurity/[email protected] | |
continue-on-error: true | |
with: | |
scan-type: 'fs' | |
scan-ref: 'src/core-api' | |
- name: Test | |
run: make dep && make test | |
working-directory: src/core-api |