mirror of
https://github.com/spf13/viper
synced 2025-05-06 04:07:17 +00:00
This imports the `ci` workflow from
ab4b05adc6
with one modification noted in the file.
This omits the feedback workflows, as those are not required here. It
also omits the wasm workflow, as this old snapshot of the code does not
work in that context.
36 lines
666 B
YAML
36 lines
666 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
go: ['1.14', '1.15', '1.16']
|
|
env:
|
|
VERBOSE: 1
|
|
GOFLAGS: -mod=readonly
|
|
GOPROXY: https://proxy.golang.org
|
|
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
# the DataDog fork of this repository has many lint failures
|
|
# - name: Lint
|
|
# run: make lint
|
|
|
|
- name: Test
|
|
run: make test
|