Update CI configs to v0.8.0

Update lint scripts and CI configs.
Excluding codecov.yml.
This commit is contained in:
Pion
2022-10-20 16:38:57 +00:00
committed by Atsushi Watanabe
parent 9051fd3ba2
commit 08b83fa602
5 changed files with 33 additions and 64 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 runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go: ["1.17", "1.18"] go: ["1.17", "1.18"] # auto-update/supported-go-version-list
fail-fast: false fail-fast: false
name: Go ${{ matrix.go }} name: Go ${{ matrix.go }}
steps: steps:
@@ -89,7 +89,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go: ["1.17", "1.18"] go: ["1.17", "1.18"] # auto-update/supported-go-version-list
fail-fast: false fail-fast: false
name: Go i386 ${{ matrix.go }} name: Go i386 ${{ matrix.go }}
steps: steps:
@@ -145,7 +145,7 @@ jobs:
- name: Download Go - name: Download Go
run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf - run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf -
env: env:
GO_VERSION: 1.17 GO_VERSION: 1.17 # auto-update/latest-go-version
- name: Set Go Root - name: Set Go Root
run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV

View File

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

View File

@@ -1,39 +1,2 @@
before:
hooks:
- go mod tidy
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
builds: builds:
- binary: stun-nat-behaviour - skip: true
id: stun-nat-behaviour
goos:
- darwin
- windows
- linux
- freebsd
goarch:
- amd64
- 386
env:
- CGO_ENABLED=0
main: ./cmd/stun-nat-behaviour

View File

@@ -1,27 +1,6 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": [
"config:base", "github>pion/renovate-config"
":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"
] ]
} }