fix workflow main/master bug #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: Go Build Check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.22" | |
- name: Install dependencies | |
run: go mod download | |
- name: Build | |
run: go build ./cmd/solana_exporter | |
- name: Verify build artifacts | |
run: | | |
if [ ! -f solana_exporter ]; then | |
echo "Build failed: solana_exporter binary not found" | |
exit 1 | |
fi |