Skip to content

Commit

Permalink
testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchun committed Mar 20, 2024
1 parent 5db0be8 commit 7f4080c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Testing
on: [push, pull_request]

jobs:
test:
strategy:
matrix:
go-version: ["1.20", 1.21.x, 1.22.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v4

- name: Test
run: |
go version
go test . -v -cover

0 comments on commit 7f4080c

Please sign in to comment.