Format yaml files (#2169)

This commit is contained in:
Joe Lim authored and GitHub committed 2025-09-19 22:57:38 +10:00
1 parent d3816c6d6a
commit 38bcd0ba3d
3 files changed
+53 -56

No files matched your search

+35 -37
View File
@@ -2,65 +2,63 @@ name: Go
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
- name: Build
run: go build -v ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Test
run: go test -v ./...
- uses: dominikh/staticcheck-action@v1.4.0
with:
version: "2025.1.1"
install-go: false
- uses: dominikh/staticcheck-action@v1.4.0
with:
version: "2025.1.1"
install-go: false
cross-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
- name: Cross-compile on all supported platforms
run: gen/xbuild.sh
- name: Cross-compile on all supported platforms
run: gen/xbuild.sh
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
- name: Test `go fmt` creates no diffs
run: go fmt && git diff --exit-code
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
- name: Test `go fmt` creates no diffs
run: go fmt && git diff --exit-code