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: Install Go
|
2022-12-13 21:17:49 -08:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
2019-03-13 04:14:30 -07:00
|
|
|
with:
|
2023-03-12 05:39:39 -07:00
|
|
|
go-version: 1.20.2
|
2019-03-13 04:14:30 -07:00
|
|
|
- name: Checkout code
|
2023-01-05 16:26:15 -08:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
2019-03-13 04:14:30 -07:00
|
|
|
- name: Golang CI
|
2023-01-23 16:30:04 -08:00
|
|
|
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
|
2019-03-13 04:14:30 -07:00
|
|
|
with:
|
2021-03-27 09:10:35 -07:00
|
|
|
version: latest
|
2020-12-25 11:02:25 -08:00
|
|
|
working-directory: src
|
2019-03-13 04:14:30 -07:00
|
|
|
- name: Unit Tests
|
2022-02-01 05:38:25 -08:00
|
|
|
run: go test -v ./...
|