yq/.github/workflows/go.yml

36 lines
730 B
YAML
Raw 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:
2023-02-10 17:06:16 +00:00
- name: Set up Go
uses: actions/setup-go@v4
2020-02-21 10:19:09 +00:00
with:
2023-02-11 12:50:47 +00:00
go-version: '^1.20'
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