feat(sprig): updated sprig version to advance functions support - vendor #257
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
on: [push, pull_request] | |
name: Build | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.13.10'] | |
steps: | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- name: Cache Build Dependencies # Speeds up subsquent builds | |
uses: actions/cache@v1 | |
with: | |
path: ~/go/pkg/mod | |
key: go-${{ hashFiles('**/go.sum') }} | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Download private dependencies | |
run: | | |
git config --global url."https://${GITHUB_TOKEN}:[email protected]/".insteadOf "https://github.com/" | |
GOPRIVATE=github.com/armory-io/dinghy go get github.com/armory-io/dinghy/pkg/parsers/yaml@master | |
go mod vendor | |
env: | |
GITHUB_TOKEN: ${{ secrets.ARMORYIO_GITHUB_TOKEN }} | |
- name: Build | |
run: go build -v . | |
- name: Test | |
run: go test -v -coverprofile=profile.cov ./... | |
- name: Send Coverage | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: profile.cov |