Extract CA chain from tls.crt if ca.crt is missing for secret-type tls artifact #302
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
# | |
# OCI Native Ingress Controller | |
# | |
# Copyright (c) 2023 Oracle America, Inc. and its affiliates. | |
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ | |
# | |
name: Unit Tests | |
on: | |
pull_request: { } | |
push: { } | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: build the binary | |
run: | | |
go build -mod vendor -a -o dist/onic ./main.go | |
- name: Run Unit Tests | |
run: | | |
go test -covermode=count -coverprofile=profile.cov $(go list ./pkg/... | grep -v /server | grep -v /testutil) | |
- name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
GO111MODULE=off go get github.com/mattn/goveralls | |
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github |