this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add basic CI

Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com>

+44
+44
.github/workflows/ci.yml
··· 1 + name: CI 2 + 3 + on: 4 + pull_request: 5 + branches: [main] 6 + push: 7 + branches: [main] 8 + 9 + jobs: 10 + format: 11 + name: Check formatting 12 + runs-on: ubuntu-latest 13 + steps: 14 + - uses: actions/checkout@v4 15 + 16 + - name: Set up Go 17 + uses: actions/setup-go@v5 18 + with: 19 + go-version: '1.23' 20 + 21 + - name: Check formatting 22 + run: | 23 + if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then 24 + echo "The following files are not formatted:" 25 + gofmt -s -l . 26 + exit 1 27 + fi 28 + 29 + test: 30 + name: Test and build 31 + runs-on: ubuntu-latest 32 + steps: 33 + - uses: actions/checkout@v4 34 + 35 + - name: Set up Go 36 + uses: actions/setup-go@v5 37 + with: 38 + go-version: '1.23' 39 + 40 + - name: Run tests 41 + run: go test -v ./... 42 + 43 + - name: Build 44 + run: go build -v ./cmd/leaflet-hugo-sync