Sends helpful error when metedata has multiple stemcell types #259
Workflow file for this run
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
name: Test | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: internalpcfplatformautomation/ci:testing | |
steps: | |
- name: Checkout OM | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
path: om | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: './om/go.mod' | |
- name: Test | |
run: | | |
go install github.com/onsi/ginkgo/v2 | |
ginkgo -r -race -succinct -randomizeAllSpecs -randomizeSuites -keepGoing \ | |
-skipPackage acceptance,vmlifecyclecommands,vmmanagers \ | |
-covermode=atomic -coverprofile=coverage.out . | |
mkdir -p ../coverage | |
find . -type f -name '*.out' | xargs -I{} bash -c 'mv {} "../coverage/$(echo {} | sha1sum | head -c 40 ).out"' | |
working-directory: om | |
env: | |
CGO_ENABLED: 1 | |
- name: Archive Unit Test Code Coverage Output | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Unit Test Code Coverage Output | |
path: coverage/*.out |