refactor: support for go library use case #1
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: Ensure version increment | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- synchronize | |
- reopened | |
paths: | |
- cli/*$ | |
- core/** | |
- docker-plugins/** | |
- example/** | |
concurrency: | |
group: "${{ github.workflow_ref }} - ${{ github.ref }} - ${{ github.event_name }}" | |
cancel-in-progress: true | |
jobs: | |
build_cli: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: Setup Go 1.22.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.x" | |
- name: Build the CLI | |
run: make build | |
build_plugins: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: Setup Go 1.22.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.x" | |
- name: Build Docker plugins | |
run: make build-plugins | |
install_docker_plugins: | |
runs-on: ubuntu-latest | |
needs: build_plugins | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: Setup Go 1.22.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.x" | |
- name: Build Docker plugins | |
run: make install-plugins | |
test: | |
runs-on: ubuntu-latest | |
needs: [build_cli, build_plugins] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: Setup Go 1.22.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.x' | |
- name: Test | |
run: make test | |