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
|
2023-12-06 16:30:25 -08:00
|
|
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
|
2019-03-13 04:14:30 -07:00
|
|
|
with:
|
2023-08-29 11:25:51 -07:00
|
|
|
go-version: 1.21
|
2023-07-10 04:40:31 -07:00
|
|
|
cache-dependency-path: src/go.sum
|
2019-03-13 04:14:30 -07:00
|
|
|
- name: Checkout code
|
2024-03-12 17:41:24 -07:00
|
|
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
|
2019-03-13 04:14:30 -07:00
|
|
|
- name: Golang CI
|
2024-02-08 17:02:30 -08:00
|
|
|
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
|
2019-03-13 04:14:30 -07:00
|
|
|
with:
|
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 ./...
|