Run go-makefile-maker #221
  
    
      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
    
  
  
    
  | ################################################################################ | |
| # This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> # | |
| # Edit Makefile.maker.yaml instead. # | |
| ################################################################################ | |
| # SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: CI | |
| "on": | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| branches: | |
| - '*' | |
| paths-ignore: | |
| - '**.md' | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| check-latest: true | |
| go-version: 1.24.7 | |
| code_coverage: | |
| name: Code coverage report | |
| if: github.event_name == 'pull_request' | |
| needs: | |
| - test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v5 | |
| - name: Post coverage report | |
| uses: fgrosse/go-coverage-report@v1.2.0 | |
| with: | |
| coverage-artifact-name: code-coverage | |
| coverage-file-name: cover.out | |
| permissions: | |
| actions: read | |
| contents: read | |
| pull-requests: write | |
| test: | |
| name: Test | |
| needs: | |
| - build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| check-latest: true | |
| go-version: 1.24.7 | |
| - name: Run tests and generate coverage report | |
| run: make build/cover.out | |
| - name: Archive code coverage results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: code-coverage | |
| path: build/cover.out |