From 24f418862cfd87744ffe26dba5d655407d7467ed Mon Sep 17 00:00:00 2001 From: Pion <59523206+pionbot@users.noreply.github.com> Date: Thu, 20 Oct 2022 16:37:52 +0000 Subject: [PATCH] Update CI configs to v0.8.0 Update lint scripts and CI configs. --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ .github/workflows/test.yaml | 6 +++--- .github/workflows/tidy-check.yaml | 2 ++ .goreleaser.yml | 2 ++ renovate.json | 25 ++----------------------- 5 files changed, 34 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 .goreleaser.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 new file mode 100644 index 0000000..2caa5fb --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,2 @@ +builds: +- 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" ] }