Skip to content

test

test #690

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
ci:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
cache: true
- name: install
run: make install
- name: test
run: make test
- name: Upload coverage
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.*
- name: Upload dist
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: ./coverage.out
flags: ${{ runner.os }}
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}