yq/.github/workflows/go.yml

36 lines
732 B
YAML
Raw Permalink Normal View History

2020-02-26 10:13:39 +00:00
name: Build
2021-11-10 02:00:22 +00:00
on: [push, pull_request]
permissions:
contents: read
2020-02-21 10:19:09 +00:00
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
2020-02-21 10:19:09 +00:00
with:
go-version: 1.19
2020-02-21 10:19:09 +00:00
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
2020-02-21 10:19:09 +00:00
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
2021-11-10 02:21:10 +00:00
- name: Check the build
2022-01-27 03:22:01 +00:00
shell: bash -l {0}
2020-04-14 01:33:25 +00:00
run: |
export PATH=${PATH}:`go env GOPATH`/bin
scripts/devtools.sh
2021-11-08 20:56:21 +00:00
make local build