Skip to content

gaosaroma pushed module-controller code #151

gaosaroma pushed module-controller code

gaosaroma pushed module-controller code #151

name: Module Controller Unit Test
run-name: ${{ github.actor }} pushed module-controller code
on:
push:
branches:
- main
pull_request:
branches:
- main
# enable manually running the workflow
workflow_dispatch:
env:
CGO_ENABLED: 0
GOOS: linux
WORK_DIR: .
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
cache-dependency-path: ${{ env.WORK_DIR }}/go.sum
- name: Run go mod
run: go mod download
- name: Test
run: make test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: koupleless/module-controller