Update tests.yaml

This commit is contained in:
Kilian Ciuffolo 2024-06-01 11:06:08 -07:00 committed by GitHub
parent 7053e609d1
commit 1cf1ff7ddc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,19 +17,11 @@ jobs:
container: golang:latest container: golang:latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Verify Changed files
id: verify-changed-files
uses: tj-actions/verify-changed-files@v20
with:
files: |
!*.md
- name: Get dependencies - name: Get dependencies
run: go get -v -t -d ./... run: go get -v -t -d ./...
- name: Run tests - name: Run tests
run: go test -coverprofile=cover.out main_test.go main.go run: go test -coverprofile=cover.out main_test.go main.go
- name: Install Vim - name: Install Vim
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: apt-get update; apt-get install -y vim; run: apt-get update; apt-get install -y vim;
- name: Go Beautiful HTML Coverage - name: Go Beautiful HTML Coverage
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: gha-common/go-beautiful-html-coverage@v1 uses: gha-common/go-beautiful-html-coverage@v1