From 70d1fc4ae1411c15deb83bc45863d3e18efcd133 Mon Sep 17 00:00:00 2001 From: zhengchun Date: Wed, 20 Mar 2024 23:03:45 +0800 Subject: [PATCH] update `testing.yml` --- .github/workflows/testing.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 5f98ca2..e9309df 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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