Skip to content

Merge pull request #44 from docker/dependabot/github_actions/actions/… #184

Merge pull request #44 from docker/dependabot/github_actions/actions/…

Merge pull request #44 from docker/dependabot/github_actions/actions/… #184

Workflow file for this run

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@v3
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@v3
with:
name: example-docs
path: ./example/docs/*
if-no-files-found: error