Skip to content

Commit

Permalink
同时测试多个 Go 版本并临时移除 Win 平台
Browse files Browse the repository at this point in the history
  • Loading branch information
taoso committed Oct 7, 2023
1 parent de00f6e commit dabd68a
Showing 1 changed file with 14 additions and 38 deletions.
52 changes: 14 additions & 38 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,18 @@
name: Go
on: [pull_request]
jobs:
test-linux:
name: Test on Linux
runs-on: ubuntu-latest
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
version: [1.18, 1.19, 1.20]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.20
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Test
run: go test -gcflags='all=-N -l'
test-macos:
name: Test on Mac
runs-on: macos-latest
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.20
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Test
run: go test -gcflags='all=-N -l'
test-windows:
name: Test on Windows
runs-on: windows-latest
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.20
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Test
run: go test -gcflags='all=-N -l'
- name: Set up Go ${{ matrix.version }}
uses: actions/setup-go@v1
with:
node-version: ${{ matrix.version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Test
run: go test -gcflags='all=-N -l'

0 comments on commit dabd68a

Please sign in to comment.