This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
Merge pull request #40 from s1061123/update-readme #82
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
on: [push, pull_request] | |
name: Test | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.17.x, 1.18.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run Revive Action by pulling pre-built image | |
uses: docker://morphy/revive-action:v2 | |
with: | |
exclude: "./vendor/..." | |
- name: Run go fmt | |
run: go fmt ./... | |
#run: diff -u <(echo -n) <(gofmt -d -s .) | |
- name: Run go vet | |
run: go vet ./... | |
# - name: Test | |
# run: sudo ./hack/test-go.sh | |
# | |
# - name: Send coverage | |
# uses: shogo82148/actions-goveralls@v1 | |
# with: | |
# path-to-profile: coverage.out | |
# flag-name: Go-${{ matrix.go }} | |
# parallel: true | |
# | |
# # notifies that all test jobs are finished. | |
# finish: | |
# needs: test | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: shogo82148/actions-goveralls@v1 | |
# with: | |
# parallel-finished: true |