Skip to content

Commit

Permalink
Updated GHA to build for mac and bumped golang versions
Browse files Browse the repository at this point in the history
  • Loading branch information
linted committed Oct 19, 2023
1 parent e844e79 commit 9f3d467
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ permissions: read-all

jobs:
unit-tests:
name: Run ${{matrix.go}} unit tests
name: Run ${{matrix.go}} unit tests on ${{matrix.os}}
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
go: [ '1.18.x', '1.19.x' ]
os: [ ubuntu-latest, macos-latest ]
go: [ '1.20.x', '1.21.x' ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
Expand All @@ -48,9 +48,16 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Install required packages
- name: Install required packages for ubuntu
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y libpam0g-dev

- name: Update xcode
if: matrix.os == 'macos-latest'
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable

- name: Run Go vet
run: go vet -v ./...

Expand Down

0 comments on commit 9f3d467

Please sign in to comment.