36 lines
669 B
YAML
36 lines
669 B
YAML
![]() |
name: Test
|
||
|
|
||
|
env:
|
||
|
TZ: Etc/GMT-8
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- master
|
||
|
permissions:
|
||
|
contents: read
|
||
|
jobs:
|
||
|
uint:
|
||
|
strategy:
|
||
|
matrix:
|
||
|
go: ['>=1.19.8']
|
||
|
os: [ubuntu-latest]
|
||
|
fail-fast: true
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
steps:
|
||
|
- name: Checkout Code
|
||
|
uses: https://github.com/actions/checkout@v4
|
||
|
|
||
|
- name: Setup Go ${{ matrix.go }}
|
||
|
uses: https://github.com/actions/setup-go@v4
|
||
|
with:
|
||
|
go-version: ${{ matrix.go }}
|
||
|
cache: false
|
||
|
|
||
|
- name: Run Tests
|
||
|
run: go test -race -cover -coverprofile=coverage -covermode=atomic -v ./...
|
||
|
|