Files
cocommit/.github/workflows/test_push.yml
T
2025-04-10 18:08:28 +02:00

35 lines
901 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@v3
- 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: go test -v ./...
- name: Update coverage report
uses: ncruces/go-coverage-report@v0
with:
report: true
chart: true
amend: true
if: |
matrix.os == 'ubuntu-latest' &&
github.event_name == 'push'
continue-on-error: true