test: remove hardcoded files to check #196
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'releases/v*' | |
tags: | |
- 'v*' | |
pull_request: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Run | |
uses: docker/bake-action@v4 | |
with: | |
targets: validate | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Run | |
uses: docker/bake-action@v4 | |
with: | |
targets: test | |
- | |
name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./coverage.txt | |
example: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.18 | |
- | |
name: Run | |
run: | | |
go run main.go | |
working-directory: ./example | |
- | |
name: List docs | |
run: | | |
tree -nh ./example/docs | |
- | |
name: Upload docs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: example-docs | |
path: ./example/docs/* | |
if-no-files-found: error |