Merge pull request #219 from chartmuseum/dependabot/go_modules/github… #47
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: build | |
| on: | |
| push: | |
| branches: main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: setup go environment | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: '1.21' | |
| - name: run unit tests | |
| run: sudo pip install virtualenv && make test | |
| - name: build binary | |
| run: make build_linux link_linux | |
| - name: run acceptance tests | |
| run: make acceptance | |
| - name: upload coverage report | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: helmpush-coverage-report-${{ github.sha }} | |
| path: .cover/ | |
| if: always() | |
| - name: upload acceptance report | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: helmpush-acceptance-report-${{ github.sha }} | |
| path: .robot/ | |
| if: always() |