mirror of
https://github.com/pion/stun.git
synced 2025-09-27 04:05:57 +08:00
Update CI configs to v0.8.0
Update lint scripts and CI configs. Excluding codecov.yml.
This commit is contained in:
25
.github/workflows/release.yml
vendored
Normal file
25
.github/workflows/release.yml
vendored
Normal 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 }}
|
6
.github/workflows/test.yaml
vendored
6
.github/workflows/test.yaml
vendored
@@ -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
|
||||||
|
2
.github/workflows/tidy-check.yaml
vendored
2
.github/workflows/tidy-check.yaml
vendored
@@ -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
|
||||||
|
@@ -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
|
|
||||||
|
@@ -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"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user