From 53bffcdb638fb0ab75a85a56d5eff80a7629840d Mon Sep 17 00:00:00 2001 From: Chase Pierce Date: Mon, 8 Jul 2024 18:31:14 -0600 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2cb9f1c..5fd3a8e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,17 +1,24 @@ name: Test -on: [push, pull_request] + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + jobs: test: strategy: matrix: - go-version: [1.16.x] + go-version: ['latest', '1.16.x'] runs-on: ubuntu-latest steps: - - name: Install Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - + name: Install Go + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - - name: Test + - + name: Test run: go test -v -race ./...