Skip to content

fix(sprig): added new functions for plank mock #249

fix(sprig): added new functions for plank mock

fix(sprig): added new functions for plank mock #249

Workflow file for this run

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