feat(codegen): Add flag to ignore string format for type generation #145
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
cache: true | |
- uses: dagger/dagger-for-github@v5 | |
with: | |
verb: call | |
args: -m build/ci test --src-dir . | |
examples: | |
name: Run examples | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
cache: true | |
- uses: dagger/dagger-for-github@v5 | |
with: | |
verb: call | |
args: -m build/ci examples --src-dir . stderr | |
lint: | |
name: Run linter | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
cache: true | |
- uses: dagger/dagger-for-github@v5 | |
with: | |
verb: call | |
args: -m build/ci lint --src-dir . | |
check-generation: | |
name: Check generation has been run | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
cache: true | |
- uses: dagger/dagger-for-github@v5 | |
with: | |
verb: call | |
args: -m build/ci check-generation --src-dir . | |
publish: | |
name: Publish a new version | |
permissions: | |
contents: write | |
needs: ["tests", "examples", "lint", "check-generation"] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
cache: true | |
- uses: dagger/dagger-for-github@v5 | |
with: | |
verb: call | |
args: -m build/ci publish --src-dir . |