2019-03-13 04:14:30 -07:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
2020-10-06 10:21:00 -07:00
|
|
|
- 'CONTRIBUTING.md'
|
|
|
|
- 'COPYING'
|
2022-05-12 22:54:59 -07:00
|
|
|
- 'website/**'
|
2020-10-06 10:43:18 -07:00
|
|
|
- '.github/*.md'
|
|
|
|
- '.github/FUNDING.yml'
|
2019-03-13 04:14:30 -07:00
|
|
|
|
|
|
|
name: Validate Code
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2020-12-25 11:02:25 -08:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ${{ github.workspace }}/src
|
2019-03-13 04:14:30 -07:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2024-10-23 18:02:58 -07:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
2024-08-08 00:17:24 -07:00
|
|
|
- name: Install Go 🗳
|
|
|
|
uses: ./.github/workflows/composite/bootstrap-go
|
2019-03-13 04:14:30 -07:00
|
|
|
- name: Golang CI
|
2024-10-03 17:27:27 -07:00
|
|
|
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
|
2019-03-13 04:14:30 -07:00
|
|
|
with:
|
2020-12-25 11:02:25 -08:00
|
|
|
working-directory: src
|
2024-08-08 00:17:24 -07:00
|
|
|
- name: Fieldalignment
|
|
|
|
run: |
|
|
|
|
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
|
|
|
|
fieldalignment "./..."
|
2019-03-13 04:14:30 -07:00
|
|
|
- name: Unit Tests
|
2022-02-01 05:38:25 -08:00
|
|
|
run: go test -v ./...
|