chore(deps): bump actions/checkout from 7.0.0 to 7.0.1 (#50) #172
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Go | |
| uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version: '1.24' | |
| - name: Run tests | |
| run: go test ./... | |
| - name: Run go vet | |
| run: go vet ./... | |
| - name: Compile-check e2e tests | |
| # The e2e suite (build tag `e2e`) runs against a live JuliaHub instance as | |
| # part of the platform nightly CI, not here. Vet it under the build tag so | |
| # it cannot bitrot. `-run '^$'` ensures nothing actually executes. | |
| run: | | |
| go vet -tags e2e ./e2e/... | |
| go test -tags e2e -run '^$' ./e2e/... | |
| - name: Run go fmt | |
| run: | | |
| if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then | |
| echo "Code is not formatted properly:" | |
| gofmt -s -l . | |
| exit 1 | |
| fi | |
| - name: Build | |
| run: | | |
| VERSION="dev-$(git rev-parse --short HEAD)" | |
| LDFLAGS="-X main.version=$VERSION -X main.commit=$(git rev-parse HEAD) -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" | |
| go build -ldflags="$LDFLAGS" -v ./... |