Update CI configs to v0.8.0

Update lint scripts and CI configs.
This commit is contained in:
Pion
2022-10-20 16:38:44 +00:00
committed by Atsushi Watanabe
parent 42dc0d4788
commit e66501e359
5 changed files with 34 additions and 26 deletions

25
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: release
on:
push:
tags:
- 'v*'
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.18' # auto-update/latest-go-version
- name: Build and release
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17", "1.18"]
go: ["1.17", "1.18"] # auto-update/supported-go-version-list
fail-fast: false
name: Go ${{ matrix.go }}
steps:
@@ -89,7 +89,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17", "1.18"]
go: ["1.17", "1.18"] # auto-update/supported-go-version-list
fail-fast: false
name: Go i386 ${{ matrix.go }}
steps:
@@ -145,7 +145,7 @@ jobs:
- name: Download Go
run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf -
env:
GO_VERSION: 1.17
GO_VERSION: 1.17 # auto-update/latest-go-version
- name: Set Go Root
run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV

View File

@@ -29,6 +29,8 @@ jobs:
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.17 # auto-update/latest-go-version
- name: check
run: |
go mod download

2
.goreleaser.yml Normal file
View File

@@ -0,0 +1,2 @@
builds:
- skip: true

View File

@@ -1,27 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":disableDependencyDashboard"
],
"postUpdateOptions": [
"gomodTidy"
],
"commitBody": "Generated by renovateBot",
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true
},
{
"packagePatterns": ["^golang.org/x/"],
"schedule": ["on the first day of the month"]
}
],
"ignorePaths": [
".github/workflows/generate-authors.yml",
".github/workflows/lint.yaml",
".github/workflows/renovate-go-mod-fix.yaml",
".github/workflows/test.yaml",
".github/workflows/tidy-check.yaml"
"github>pion/renovate-config"
]
}