mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
31 lines
811 B
YAML
31 lines
811 B
YAML
name: Test On Push
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Go Workfile
|
|
run: go work init ./ci ./
|
|
- name: Get Dagger
|
|
run: cd ci && go get dagger.io/dagger@latest && cd ..
|
|
- name: Run Dagger Test Workflow
|
|
run: go run ci/test_on_push.go
|
|
- name: Generate Coverage Report
|
|
run: CI=true go test -coverprofile=coverage.txt ./...
|
|
- name: Upload coverage reports to Codecov
|
|
uses: codecov/codecov-action@v6
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
continue-on-error: true
|