-
Notifications
You must be signed in to change notification settings - Fork 22
28 lines (28 loc) · 829 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
on: [push, pull_request]
name: CI
jobs:
test:
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install chrome
uses: browser-actions/setup-chrome@latest
- name: Checkout code
uses: actions/checkout@v2
- name: Lint
run: |
go vet .
gofmt -l -s -w .
- name: Install cleanenv
run: go install ./cmd/cleanenv
- name: Test
run: cleanenv -remove-prefix GITHUB_ -remove-prefix JAVA_ -remove-prefix PSModulePath -remove-prefix STATS_ -remove-prefix RUNNER_ -- go test -v -race -timeout 5m ./...
- name: Install
run: go install