Skip to content

Merge pull request #248 from White-Whale-Defi-Platform/dependabot/go_… #1065

Merge pull request #248 from White-Whale-Defi-Platform/dependabot/go_…

Merge pull request #248 from White-Whale-Defi-Platform/dependabot/go_… #1065

Workflow file for this run

---
on: [push, pull_request]
name: Build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: build
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- run: go build ./...
tidy:
runs-on: ubuntu-latest
name: tidy
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- run: |
go mod tidy
CHANGES_IN_REPO=$(git status --porcelain)
if [[ -n "$CHANGES_IN_REPO" ]]; then
echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:"
git status && git --no-pager diff
exit 1
fi