mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-28 16:56:26 +00:00
Update tests.yaml
This commit is contained in:
parent
7053e609d1
commit
1cf1ff7ddc
8
.github/workflows/tests.yaml
vendored
8
.github/workflows/tests.yaml
vendored
@ -17,19 +17,11 @@ jobs:
|
||||
container: golang:latest
|
||||
steps:
|
||||
- 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
|
||||
run: go get -v -t -d ./...
|
||||
- name: Run tests
|
||||
run: go test -coverprofile=cover.out main_test.go main.go
|
||||
- name: Install Vim
|
||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
||||
run: apt-get update; apt-get install -y vim;
|
||||
- name: Go Beautiful HTML Coverage
|
||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
||||
uses: gha-common/go-beautiful-html-coverage@v1
|
||||
|
Loading…
Reference in New Issue
Block a user