Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bump the github-actions-breaking group across 1 directory with 3 updates #174

Bump the github-actions-breaking group across 1 directory with 3 updates

Bump the github-actions-breaking group across 1 directory with 3 updates #174

Workflow file for this run

name: hil
on:
- push
- pull_request
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: '1.23'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0
linux-tests:
runs-on: ubuntu-latest
env:
TEST_RESULTS_PATH: "/tmp/test-results"
strategy:
matrix:
go-version:
- 'oldstable'
- 'stable'
steps:
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Make Test Directory
run: mkdir -p "$TEST_RESULTS_PATH"/hil
- name: Setup Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: ${{ matrix.go-version }}
- name: Install gotestsum
uses: autero1/action-gotestsum@7263b9d73912eec65f46337689e59fac865c425f # v2.0.0
with:
gotestsum_version: 1.9.0
- name: Run gotestsum
env:
PLATFORM: linux
REPORT_FILE: ${{ env.TEST_RESULTS_PATH }}/hil/gotestsum-report.xml
run: |-
gotestsum --format=short-verbose --junitfile ${{ env.REPORT_FILE }} -- -p 2 -cover -coverprofile=coverage-linux.out ./...
- name: Upload Test Results
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
path: ${{ env.TEST_RESULTS_PATH }}
name: tests-linux-${{matrix.go-version}}
- name: Upload coverage report
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
path: coverage-linux.out
name: Coverage-report-linux-${{matrix.go-version}}
- name: Display coverage report
run: go tool cover -func=coverage-linux.out
windows-tests:
runs-on: windows-latest
env:
TEST_RESULTS_PATH: 'c:\Users\runneradmin\AppData\Local\Temp\test-results'
strategy:
matrix:
go-version:
- 'oldstable'
- 'stable'
steps:
- run: git config --global core.autocrlf false
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: ${{ matrix.go-version }}
- name: Install gotestsum
uses: autero1/action-gotestsum@7263b9d73912eec65f46337689e59fac865c425f # v2.0.0
with:
gotestsum_version: 1.9.0
- name: Run gotestsum
env:
PLATFORM: windows
REPORT_FILE: ${{ env.TEST_RESULTS_PATH }}/hil/gotestsum-report.xml
run: |-
gotestsum.exe --format=short-verbose --junitfile ${{ env.REPORT_FILE }} -- -p 2 -cover -coverprofile="coverage-win.out" ./...
- name: Upload Test Results
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
path: ${{ env.TEST_RESULTS_PATH }}
name: tests-windows-${{matrix.go-version}}
- name: Upload coverage report
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
path: coverage-win.out
name: Coverage-report-windows-${{matrix.go-version}}
- name: Display coverage report
run: go tool cover -func=coverage-win.out
shell: cmd