generated from theparanoids/.github
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated GHA to build for mac and bumped golang versions
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 ./... | ||
|
||
|