Skip to content

Commit

Permalink
format yaml files (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos authored Oct 3, 2023
1 parent 788c059 commit 1a47c3a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 39 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@ on:
branches:
- master
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: [1.17.x]
runs-on: ${{ matrix.os }}
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v3
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
Expand All @@ -28,8 +26,7 @@ jobs:
with:
version: v1.43
args: --timeout=5m
-
name: Tests
- name: Tests
run: |
go mod tidy
go test -v ./...
Expand All @@ -40,16 +37,16 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17.x
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17.x

- name: Checkout code
uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: goreleaser deprecation
run: curl -sfL https://git.io/goreleaser | VERSION=v1.2.5 sh -s -- check
- name: goreleaser deprecation
run: curl -sfL https://git.io/goreleaser | VERSION=v1.2.5 sh -s -- check

- name: goreleaser snapshot
run: curl -sL https://git.io/goreleaser | VERSION=v1.2.5 sh -s -- --snapshot --skip-publish --rm-dist
- name: goreleaser snapshot
run: curl -sL https://git.io/goreleaser | VERSION=v1.2.5 sh -s -- --snapshot --skip-publish --rm-dist
13 changes: 5 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,21 @@ name: goreleaser
on:
push:
tags:
- 'v*'
- "v*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.17.x'
-
name: Run GoReleaser
go-version: "1.17.x"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: v1.2.5
Expand Down
23 changes: 10 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ before:
- go mod download

builds:
-
main: ./cmd/rankdb/main.go
- main: ./cmd/rankdb/main.go
binary: rankdb
goos:
- linux
Expand All @@ -23,10 +22,9 @@ builds:
- amd64
- arm64
goarm:
- 6
- 7
-
id: rankdb-cli
- "6"
- "7"
- id: rankdb-cli
main: ./api/tool/rankdb-cli/main.go
binary: rankdb-cli
goos:
Expand All @@ -38,12 +36,11 @@ builds:
- amd64
- arm64
goarm:
- 6
- 7
- "6"
- "7"

archives:
-
replacements:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
Expand All @@ -60,12 +57,12 @@ archives:
- README.md

checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

0 comments on commit 1a47c3a

Please sign in to comment.