Skip to content

Commit

Permalink
update testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchun committed Mar 20, 2024
1 parent 4b134af commit 70d1fc4
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Testing
on: [push]
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.6", "1.9", "1.10", "1.22"]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
- name: Install checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go test .
- name: Test with the Go CLI
run: go test
go-version: "stable"

- name: Run tests
run: |
go version
go test

0 comments on commit 70d1fc4

Please sign in to comment.