This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
Support for passing parameters during reading secrets #332
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: Build | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
Build: | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ^1.17 | |
env: | |
GOPATH: /home/runner/work/cerberus-go-client/cerberus-go-client/go | |
GOBIN: /home/runner/work/cerberus-go-client/cerbeurs-go-client/go/bin | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3.3.0 | |
with: | |
path: go/src/cerberus-go-client | |
- name: Test v1 | |
run: | | |
cd go/src/cerberus-go-client | |
make test 2>&1 | |
env: | |
GOPATH: /home/runner/work/cerberus-go-client/cerberus-go-client/go | |
GOBIN: /home/runner/work/cerberus-go-client/cerberus-go-client/go/bin | |
- name: Test v3 | |
run: | | |
cd go/src/cerberus-go-client/v3 | |
make test 2>&1 | |
- name: Upload coverage report to CodeCov | |
uses: codecov/codecov-action@v3.1.1 | |
with: | |
file: go/src/cerberus-go-client/coverage.txt # optional | |
fail_ci_if_error: true # optional (default = false) | |
verbose: true | |
- name: Slack notification when master build fails | |
if: ${{ failure() && github.ref == 'refs/heads/master'}} | |
uses: rtCamp/action-slack-notify@v2.2.0 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_CHANNEL: cerberus-alerts | |
SLACK_MESSAGE: 'Cerberus main build has failed :build-failed:' | |
SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png | |
SLACK_TITLE: Cerberus Build Failure Notification | |
SLACK_USERNAME: GitHub Actions |