Echo gopath #24
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: Unit Tests on Go Tip | |
on: | |
push: | |
branches: [main, upload-test-report-1] | |
# See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
unit-tests-go-tip: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Install Go Tip | |
uses: ./.github/actions/setup-go-tip | |
# - name: Run unit tests | |
# run: make install-test-tools | |
- name: Run unit tests | |
run: make test-ci | |
- name: Publish Unit Test Summary 📑 | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
check_name: Go Tip Unit Tests Summary | |
junit_files: junit-report.xml | |
# This workflow isn't run during Pull Requests, so check run and PR comment summaries are not needed. | |
check_run: false | |
comment_mode: off | |
- name: Lint | |
run: echo skip linting on Go tip |