Merge pull request #67 from osmosis-labs/dependabot #142
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: | |
pull_request: | |
branches: | |
- "**" | |
push: | |
branches: | |
- "main" | |
- "release/v[0-9]**" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
concurrency: | |
group: ci-${{ github.ref }}-build | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup Golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "^1.20" | |
- name: Display go version | |
run: go version | |
- name: Run all tests | |
run: make test-all | |
- uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
**/*.go | |
go.mod | |
go.sum | |
**/go.mod | |
**/go.sum | |
**/Makefile | |
Makefile | |
################### | |
#### Build App #### | |
################### | |
- name: Build demo app # to ensure everything compiles | |
if: env.GIT_DIFF | |
run: make build |