Merge pull request #485 from ccamel/dependabot/github_actions/actions… #294
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: Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-go: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Setup Go environment | |
uses: actions/setup-go@v5.2.0 | |
with: | |
go-version: '1.21' | |
- name: Build go project | |
uses: magefile/mage-action@v3 | |
with: | |
version: v1.14.0 | |
args: build | |
build-docker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Build docker image | |
uses: magefile/mage-action@v3 | |
with: | |
version: v1.14.0 | |
args: docker |