fix: map dataset fields as it should (best effort ofcourse there is n… #32
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: AIBomGen-cli Go Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: [ '1.25.x', '1.24.x', '1.23.x', '1.22.x', '1.21.x' ] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go ${{ matrix.go-version }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| check-latest: true | |
| cache: true | |
| cache-dependency-path: | | |
| **/go.sum | |
| **/go.work.sum | |
| - name: Show Go env | |
| run: | | |
| go version | |
| go env GOMODCACHE GOCACHE GOOS GOARCH | |
| - name: Install dependencies | |
| run: go mod tidy | |
| - name: Run tests (no coverage) | |
| if: ${{ matrix.go-version != '1.25.x' }} | |
| run: go test ./... | |
| - name: Run tests (with coverage) | |
| if: ${{ matrix.go-version == '1.25.x' }} | |
| run: go test ./... -coverprofile=coverage.out -covermode=atomic | |
| - name: Upload coverage to Codecov | |
| if: ${{ matrix.go-version == '1.25.x' }} | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| file: ./coverage.out | |
| flags: unittests | |
| name: codecov-umbrella | |
| fail_ci_if_error: false | |
| - name: Build | |
| run: go build ./... |