Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zcalusic committed May 28, 2023
1 parent a10c980 commit 5776642
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
name: Test

on:
pull_request:
push:
branches:
- master

jobs:
test:
runs-on: ${{ matrix.os }}
build:

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
version: [1.18, 1.19]
os: [ ubuntu-latest, macos-latest ]
go-version: [ 1.18, 1.19 ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.version }}
- run: go build
- run: go test
go-version: ${{ matrix.go-version }}

- name: Build Go package
run: go build

- name: Test Go package
run: go test -exec sudo
Empty file added go.sum
Empty file.

0 comments on commit 5776642

Please sign in to comment.