Skip to content

feat!: github.com/jmattheis/goverter command #429

feat!: github.com/jmattheis/goverter command

feat!: github.com/jmattheis/goverter command #429

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
lint:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.repository != github.event.pull_request.head.repo.full_name)
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
test:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.repository != github.event.pull_request.head.repo.full_name)
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- uses: actions/checkout@v4
- run: go build ./cmd/goverter
- run: go test -coverpkg ./... -coverprofile=coverage.txt -covermode=atomic ./...
- run: grep -v '/example/' coverage.txt > filtered-coverage.txt
- uses: codecov/codecov-action@v4
with:
disable_search: true
files: ./filtered-coverage.txt
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test_go118:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.repository != github.event.pull_request.head.repo.full_name)
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.18.x
- uses: actions/checkout@v4
- run: go build ./cmd/goverter
- run: go test ./...
env:
SKIP_VERSION_DEPENDENT: 'true'
build_docs:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.repository != github.event.pull_request.head.repo.full_name)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: docs/yarn.lock
- working-directory: docs
run: |
yarn install --frozen-lockfile
yarn docs:build