From 08b83fa60285ed783fd445500f3b806c9a0c6c46 Mon Sep 17 00:00:00 2001 From: Pion <59523206+pionbot@users.noreply.github.com> Date: Thu, 20 Oct 2022 16:38:57 +0000 Subject: [PATCH] Update CI configs to v0.8.0 Update lint scripts and CI configs. Excluding codecov.yml. --- .github/workflows/release.yml | 25 ++++++++++++++++++++ .github/workflows/test.yaml | 6 ++--- .github/workflows/tidy-check.yaml | 2 ++ .goreleaser.yml | 39 +------------------------------ renovate.json | 25 ++------------------ 5 files changed, 33 insertions(+), 64 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b5b64e0 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 300fac6..93d0406 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/.github/workflows/tidy-check.yaml b/.github/workflows/tidy-check.yaml index fa52ce9..ff2ef50 100644 --- a/.github/workflows/tidy-check.yaml +++ b/.github/workflows/tidy-check.yaml @@ -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 diff --git a/.goreleaser.yml b/.goreleaser.yml index b181dce..2caa5fb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: - - binary: stun-nat-behaviour - id: stun-nat-behaviour - goos: - - darwin - - windows - - linux - - freebsd - goarch: - - amd64 - - 386 - env: - - CGO_ENABLED=0 - main: ./cmd/stun-nat-behaviour +- skip: true diff --git a/renovate.json b/renovate.json index f161405..f1bb98c 100644 --- a/renovate.json +++ b/renovate.json @@ -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" ] }