Skip to content

Commit 8f3fba4

Browse files
pionbotat-wat
authored andcommitted
Update CI configs to v0.8.0
Update lint scripts and CI configs.
1 parent 8c1adf1 commit 8f3fba4

File tree

5 files changed

+34
-26
lines changed

5 files changed

+34
-26
lines changed

.github/workflows/release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
release:
9+
permissions:
10+
contents: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- uses: actions/setup-go@v3
17+
with:
18+
go-version: '1.18' # auto-update/latest-go-version
19+
- name: Build and release
20+
uses: goreleaser/goreleaser-action@v3
21+
with:
22+
version: latest
23+
args: release --rm-dist
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
strategy:
2828
matrix:
29-
go: ["1.17", "1.18"]
29+
go: ["1.17", "1.18"] # auto-update/supported-go-version-list
3030
fail-fast: false
3131
name: Go ${{ matrix.go }}
3232
steps:
@@ -89,7 +89,7 @@ jobs:
8989
runs-on: ubuntu-latest
9090
strategy:
9191
matrix:
92-
go: ["1.17", "1.18"]
92+
go: ["1.17", "1.18"] # auto-update/supported-go-version-list
9393
fail-fast: false
9494
name: Go i386 ${{ matrix.go }}
9595
steps:
@@ -145,7 +145,7 @@ jobs:
145145
- name: Download Go
146146
run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf -
147147
env:
148-
GO_VERSION: 1.17
148+
GO_VERSION: 1.17 # auto-update/latest-go-version
149149

150150
- name: Set Go Root
151151
run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV

.github/workflows/tidy-check.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
uses: actions/checkout@v3
3030
- name: Setup Go
3131
uses: actions/setup-go@v3
32+
with:
33+
go-version: 1.17 # auto-update/latest-go-version
3234
- name: check
3335
run: |
3436
go mod download

.goreleaser.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
builds:
2+
- skip: true

renovate.json

+2-23
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
11
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
23
"extends": [
3-
"config:base",
4-
":disableDependencyDashboard"
5-
],
6-
"postUpdateOptions": [
7-
"gomodTidy"
8-
],
9-
"commitBody": "Generated by renovateBot",
10-
"packageRules": [
11-
{
12-
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
13-
"automerge": true
14-
},
15-
{
16-
"packagePatterns": ["^golang.org/x/"],
17-
"schedule": ["on the first day of the month"]
18-
}
19-
],
20-
"ignorePaths": [
21-
".github/workflows/generate-authors.yml",
22-
".github/workflows/lint.yaml",
23-
".github/workflows/renovate-go-mod-fix.yaml",
24-
".github/workflows/test.yaml",
25-
".github/workflows/tidy-check.yaml"
4+
"github>pion/renovate-config"
265
]
276
}

0 commit comments

Comments
 (0)