script: yaml formatting (#261)
This commit is contained in:
committed by
GitHub
parent
f1f7d93959
commit
96c4d85995
114
.github/workflows/ci.yml
vendored
114
.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:
|
||||
@@ -19,44 +16,41 @@ jobs:
|
||||
platform: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
check-latest: true
|
||||
- name: Configure Go Environment
|
||||
run: |
|
||||
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
|
||||
echo ${{ runner.workspace }}/bin >> $GITHUB_PATH
|
||||
- name: Go Environment
|
||||
run: go env
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
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:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: unittests.coverprofile
|
||||
flags: unittests
|
||||
- name: Upload Integration Test Coverage
|
||||
uses: codecov/codecov-action@51d810878be5422784e86451c0e7c14e5860ec47 # v2.0.2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: integration.coverprofile
|
||||
flags: integration
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
check-latest: true
|
||||
- name: Configure Go Environment
|
||||
run: |
|
||||
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
|
||||
echo ${{ runner.workspace }}/bin >> $GITHUB_PATH
|
||||
- name: Go Environment
|
||||
run: go env
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
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:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: unittests.coverprofile
|
||||
flags: unittests
|
||||
- name: Upload Integration Test Coverage
|
||||
uses: codecov/codecov-action@51d810878be5422784e86451c0e7c14e5860ec47 # v2.0.2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: integration.coverprofile
|
||||
flags: integration
|
||||
lint:
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -64,22 +58,22 @@ jobs:
|
||||
platform: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
check-latest: true
|
||||
- name: Configure Go Environment
|
||||
run: |
|
||||
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
|
||||
echo ${{ runner.workspace }}/bin >> $GITHUB_PATH
|
||||
- name: Go Environment
|
||||
run: go env
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Bootstrap
|
||||
run: ./script/bootstrap
|
||||
- name: Lint
|
||||
run: ./script/lint
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
check-latest: true
|
||||
- name: Configure Go Environment
|
||||
run: |
|
||||
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
|
||||
echo ${{ runner.workspace }}/bin >> $GITHUB_PATH
|
||||
- name: Go Environment
|
||||
run: go env
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Bootstrap
|
||||
run: ./script/bootstrap
|
||||
- name: Lint
|
||||
run: ./script/lint
|
||||
|
||||
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
|
||||
|
||||
74
.github/workflows/stress.yml
vendored
74
.github/workflows/stress.yml
vendored
@@ -1,51 +1,45 @@
|
||||
name: stress
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '33 3 * * 6'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GOFLAGS: -tags=stress
|
||||
GOFLAGS: -tags=stress
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
|
||||
with:
|
||||
go-version: 1.18.x
|
||||
check-latest: true
|
||||
- name: Configure Go Environment
|
||||
run: |
|
||||
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
|
||||
echo ${{ runner.workspace }}/bin >> $GITHUB_PATH
|
||||
- name: Go Environment
|
||||
run: go env
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
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:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: unittests.coverprofile
|
||||
flags: stress
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
|
||||
with:
|
||||
go-version: 1.18.x
|
||||
check-latest: true
|
||||
- name: Configure Go Environment
|
||||
run: |
|
||||
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
|
||||
echo ${{ runner.workspace }}/bin >> $GITHUB_PATH
|
||||
- name: Go Environment
|
||||
run: go env
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
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:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: unittests.coverprofile
|
||||
flags: stress
|
||||
|
||||
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