Skip to content

Commit

Permalink
Update GHA test Golang targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Baliedge committed Dec 24, 2024
1 parent 78b42e7 commit c219d7c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,33 @@ name: CI

on:
push:
branches:
- master
- main
branches: [ master, main ]
pull_request:
branches:
- master
- main
branches: [ master, main ]

jobs:
on-pull-request:
name: test
strategy:
matrix:
go-version:
- 1.18.x
- 1.19.x
- 1.22.x
- 1.23.x
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- run: go env

- name: Cache deps
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -43,4 +39,4 @@ jobs:
run: go mod download

- name: Test
run: go test ./...
run: go test ./...

0 comments on commit c219d7c

Please sign in to comment.