mirror of
https://github.com/chainreactors/spray.git
synced 2026-10-24 08:54:30 +00:00
35 lines
737 B
YAML
35 lines
737 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.20"
|
|
|
|
- name: Build
|
|
run: go build ./...
|
|
|
|
- name: Test (race)
|
|
run: go test ./core/pool/ ./core/baseline/ ./core/ihttp/ ./pkg/ -v -race -count=1 -timeout=120s
|
|
|
|
- name: Vet
|
|
run: go vet ./core/... ./pkg/... ./cmd/...
|
|
continue-on-error: true
|