Updated github workflows

master
Ian Davis 2023-03-03 10:59:32 +00:00
parent 6b71cfa931
commit 6e2c7f6f56
4 changed files with 10 additions and 16 deletions

View File

@ -1,9 +1,6 @@
env:
GO_VERSION: 1.20
on:
workflow_dispatch:
name: Update package dependencies
jobs:
dep_update:
runs-on: ubuntu-latest
@ -13,7 +10,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
go-version: 1.20.x
- name: Checkout
uses: actions/checkout@v3

View File

@ -1,6 +1,3 @@
env:
GO_VERSION: 1.20
on:
workflow_dispatch:
pull_request:
@ -9,7 +6,7 @@ on:
branches:
- main
- master
name: Check
name: Run checks
jobs:
check:
runs-on: ubuntu-latest
@ -17,11 +14,11 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
go-version: 1.20.x
- name: Get StaticCheck
run: go install honnef.co/go/tools/cmd/staticcheck@2eef17617de2b0c8051063b2c590a6a91459a19a # Version 2023.1.2 (v0.4.2)
run: go install honnef.co/go/tools/cmd/staticcheck@v0.4.2 # Version 2023.1.2 (v0.4.2)
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive
- name: Gomod

View File

@ -6,7 +6,7 @@ on:
branches:
- main
- master
name: Test Go Tip
name: Test Go tip
jobs:
test:
runs-on: ubuntu-latest
@ -21,7 +21,7 @@ jobs:
gotip download
gotip version
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive
- id: Cache

View File

@ -6,7 +6,7 @@ on:
branches:
- main
- master
name: Test
name: Run tests
jobs:
test:
strategy:
@ -20,7 +20,7 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive
- id: Cache