script: yaml formatting (#261)
This commit is contained in:
committed by
GitHub
parent
f1f7d93959
commit
96c4d85995
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -1,8 +1,6 @@
|
||||
name: ci
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -10,7 +8,6 @@ on:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '17 12 * * 6'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
@@ -36,14 +33,12 @@ jobs:
|
||||
persist-credentials: false
|
||||
- name: Bootstrap
|
||||
run: ./script/bootstrap
|
||||
|
||||
- name: Build
|
||||
run: go build ./...
|
||||
- name: Test
|
||||
run: go test -bench . ./...
|
||||
- name: Coverage
|
||||
run: ./script/coverage
|
||||
|
||||
- name: Upload Unit Test Coverage
|
||||
uses: codecov/codecov-action@51d810878be5422784e86451c0e7c14e5860ec47 # v2.0.2
|
||||
with:
|
||||
@@ -56,7 +51,6 @@ jobs:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: integration.coverprofile
|
||||
flags: integration
|
||||
|
||||
lint:
|
||||
strategy:
|
||||
matrix:
|
||||
|
||||
1
.github/workflows/packages.yml
vendored
1
.github/workflows/packages.yml
vendored
@@ -8,7 +8,6 @@ on:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
zeebo-xxh3:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
6
.github/workflows/stress.yml
vendored
6
.github/workflows/stress.yml
vendored
@@ -1,12 +1,9 @@
|
||||
name: stress
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '33 3 * * 6'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -30,19 +27,16 @@ jobs:
|
||||
persist-credentials: false
|
||||
- name: Bootstrap
|
||||
run: ./script/bootstrap
|
||||
|
||||
- name: Generate
|
||||
run: ./script/generate
|
||||
- name: Status
|
||||
run: git status
|
||||
|
||||
- name: Build
|
||||
run: go build ./...
|
||||
- name: Test
|
||||
run: go test -bench . ./...
|
||||
- name: Coverage
|
||||
run: ./script/coverage
|
||||
|
||||
- name: Upload Stress Unit Test Coverage
|
||||
uses: codecov/codecov-action@51d810878be5422784e86451c0e7c14e5860ec47 # v2.0.2
|
||||
with:
|
||||
|
||||
3
.github/workflows/thirdparty.yml
vendored
3
.github/workflows/thirdparty.yml
vendored
@@ -1,8 +1,6 @@
|
||||
name: thirdparty
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -12,7 +10,6 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "tests/thirdparty/**"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
run:
|
||||
timeout: 5m
|
||||
|
||||
linters:
|
||||
enable-all: true
|
||||
disable:
|
||||
@@ -32,7 +31,6 @@ linters:
|
||||
- varnamelen
|
||||
- wrapcheck
|
||||
- wsl
|
||||
|
||||
linters-settings:
|
||||
depguard:
|
||||
list-type: whitelist
|
||||
@@ -44,7 +42,6 @@ linters-settings:
|
||||
- standard
|
||||
- default
|
||||
- prefix(github.com/mmcloughlin/avo)
|
||||
|
||||
issues:
|
||||
exclude-use-default: false
|
||||
exclude:
|
||||
|
||||
@@ -20,3 +20,6 @@ go install golang.org/x/tools/cmd/goimports@v0.1.10
|
||||
|
||||
# gofumpt for stricter formatting.
|
||||
go install mvdan.cc/gofumpt@v0.2.1
|
||||
|
||||
# yamlfmt for yaml formatting.
|
||||
go install github.com/gechr/yamlfmt@v0.0.0-20220216093356-e9288cd48d12
|
||||
|
||||
@@ -16,3 +16,6 @@ goimports -w -local "${repo}" ${files}
|
||||
|
||||
# gofumpt for stricter gofmt-compatible format.
|
||||
gofumpt -w ${files}
|
||||
|
||||
# yaml formatting.
|
||||
find . -name '*.yml' | xargs yamlfmt -w
|
||||
|
||||
1
tests/thirdparty/make_workflow.go
vendored
1
tests/thirdparty/make_workflow.go
vendored
@@ -85,7 +85,6 @@ func GenerateWorkflow(pkgs thirdparty.Packages) ([]byte, error) {
|
||||
g.Linef(" pull_request:")
|
||||
|
||||
// One job per package.
|
||||
g.NL()
|
||||
g.Linef("jobs:")
|
||||
g.Indent()
|
||||
for _, pkg := range pkgs {
|
||||
|
||||
Reference in New Issue
Block a user