From 38bcd0ba3ddf72dab6afc16079db5a7dae9d7f10 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Fri, 19 Sep 2025 22:57:38 +1000 Subject: [PATCH] Format yaml files (#2169) --- .github/dependabot.yml | 12 +++--- .github/workflows/go.yml | 72 +++++++++++++++++------------------ .github/workflows/release.yml | 25 ++++++------ 3 files changed, 53 insertions(+), 56 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 615dfde2..bed11193 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,10 +1,10 @@ version: 2 updates: - - package-ecosystem: "github-actions" - directory: "/" + - package-ecosystem: github-actions + directory: / schedule: - interval: "daily" - - package-ecosystem: "gomod" - directory: "/" + interval: daily + - package-ecosystem: gomod + directory: / schedule: - interval: "daily" + interval: daily diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8866c0c6..df49d033 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 166c0f50..d5068d9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,27 +3,26 @@ name: Release on: push: tags: - - '*' + - "*" jobs: - build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v5 - - 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: gen/xbuild.sh + - name: Build + run: gen/xbuild.sh - - name: Release - uses: softprops/action-gh-release@v2 - with: - files: dist/* + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: dist/* winget: runs-on: ubuntu-latest