Skip to content

Add v1beta2 support #224

Add v1beta2 support

Add v1beta2 support #224

Workflow file for this run

on: [push, pull_request]
name: test
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest] #, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run Revive Action by pulling pre-built image
uses: docker://morphy/revive-action:v2
with:
exclude: "./vendor/..."
- name: Run go fmt
run: diff -u <(echo -n) <(gofmt -d -s ./cmd/ ./pkg/)
- name: Run go vet
run: go vet ./...
- name: Test
run: sudo go test -v -coverprofile=profile.cov ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
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