Skip to content

add powered by rake badge #105

add powered by rake badge

add powered by rake badge #105

Workflow file for this run

name: build and test
on:
push:
branches:
- main
- ST-*
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: go mod download
- name: Run tests
run: go test -race -count=1 -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Build app
id: build_go_app
run: |
go build -v .
echo ::set-output name=exit_code::$?
- name: Notify Slack on success
if: steps.build_go_app.outputs.exit_code == 0
id: slack_notification
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notification_title: 'Build succeeded'
message_format: 'Statoo build succeeded. <{repo_url}|{repo}@{branch}> on <{commit_url}|{commit_sha}>'
footer: 'repo: <{repo_url}|{repo}>'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}