Update module github.com/spf13/viper to v1.19.0 #234
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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize, edited] | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.pull_request.title, '[wip]') && !contains(github.event.pull_request.title, '[ci skip]') && !contains(github.event.pull_request.title, '[skip ci]')" | |
steps: | |
- run: echo "${{ github.event.pull_request.title }}" | |
test: | |
runs-on: ${{ matrix.os }} | |
needs: prepare | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
steps: | |
- name: setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18 | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: go mod download | |
run: go mod download | |
- name: go install | |
run: make install-go-tools | |
- name: Ensure go.mod is already tidied | |
run: go mod tidy && git diff -s --exit-code go.sum | |
- name: build | |
run: make bin/git-push-notifier | |
- name: lint | |
run: make lint | |
- name: test | |
run: make test |