github.com/99designs/gqlgen@v0.17.45/.github/workflows/fmt-and-generate.yml (about) 1 name: Format and Generate 2 on: 3 push: 4 branches: 5 - master 6 pull_request: 7 types: [ opened, synchronize ] 8 # When a new revision is pushed to a PR, cancel all in-progress CI runs for that 9 # PR. See https://docs.github.com/en/actions/using-jobs/using-concurrency 10 concurrency: 11 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} 12 cancel-in-progress: true 13 jobs: 14 fmt-and-lint: 15 strategy: 16 matrix: 17 go: ["1.21", "1.22"] 18 runs-on: ubuntu-latest 19 steps: 20 - uses: actions/checkout@v4 21 - uses: actions/setup-go@v5 22 with: 23 go-version: ${{ matrix.go }} 24 - run: go mod download 25 - run: .github/workflows/check-fmt 26 - run: .github/workflows/check-generate