Skip to content

Commit

Permalink
Update CI configs to v0.9.0
Browse files Browse the repository at this point in the history
Update lint scripts and CI configs.
pionbot authored and at-wat committed Jan 10, 2023
1 parent 49bf0cf commit 7ca78e8
Showing 5 changed files with 18 additions and 11 deletions.
12 changes: 9 additions & 3 deletions .github/generate-authors.sh
Original file line number Diff line number Diff line change
@@ -12,8 +12,9 @@
set -e

SCRIPT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
GIT_WORKDIR=${GITHUB_WORKSPACE:-$(git rev-parse --show-toplevel)}
AUTHORS_PATH="${GIT_WORKDIR}/AUTHORS.txt"
if [ -z "${AUTHORS_PATH}" ]; then
AUTHORS_PATH="$GITHUB_WORKSPACE/AUTHORS.txt"
fi

if [ -f ${SCRIPT_PATH}/.ci.conf ]; then
. ${SCRIPT_PATH}/.ci.conf
@@ -41,7 +42,12 @@ shouldBeIncluded () {


IFS=$'\n' #Only split on newline
for CONTRIBUTOR in $(git log --format='%aN <%aE>' | LC_ALL=C.UTF-8 sort -uf); do
for CONTRIBUTOR in $(
(
git log --format='%aN <%aE>'
git log --format='%(trailers:key=Co-authored-by)' | sed -n 's/^[^:]*:\s*//p'
) | LC_ALL=C.UTF-8 sort -uf
); do
if shouldBeIncluded ${CONTRIBUTOR}; then
CONTRIBUTORS+=("${CONTRIBUTOR}")
fi
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
with:
go-version: '1.18' # auto-update/latest-go-version
- name: Build and release
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
12 changes: 6 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17", "1.18"] # auto-update/supported-go-version-list
go: ['1.19', '1.18'] # auto-update/supported-go-version-list
fail-fast: false
name: Go ${{ matrix.go }}
steps:
@@ -67,7 +67,7 @@ jobs:
-v -race 2>&1 | grep -v '^go: downloading' | tee /tmp/gotest.log | gotestfmt
- name: Upload test log
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: always()
with:
name: test-log-${{ matrix.go }}
@@ -79,7 +79,7 @@ jobs:
if [ -f .github/.ci.conf ]; then . .github/.ci.conf; fi
if [ -n "${TEST_HOOK}" ]; then ${TEST_HOOK}; fi
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
name: codecov-umbrella
fail_ci_if_error: true
@@ -89,7 +89,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17", "1.18"] # auto-update/supported-go-version-list
go: ['1.19', '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 # auto-update/latest-go-version
GO_VERSION: '1.19' # auto-update/latest-go-version

- name: Set Go Root
run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV
@@ -167,7 +167,7 @@ jobs:
-exec="${GO_JS_WASM_EXEC}" \
-v ./...
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
name: codecov-umbrella
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .github/workflows/tidy-check.yaml
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.17 # auto-update/latest-go-version
go-version: '1.19' # auto-update/latest-go-version
- name: check
run: |
go mod download
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ Atsushi Watanabe <atsushi.w@ieee.org>
backkem <mail@backkem.me>
Cecylia Bocovich <cohosh@torproject.org>
chenkaiC4 <chenkaic4@gmail.com>
Eric Daniels <eric@erdaniels.com>
Hugo Arregui <hugo.arregui@gmail.com>
Hugo Arregui <hugo@decentraland.org>
Jerko Steiner <jerko.steiner@gmail.com>

0 comments on commit 7ca78e8

Please sign in to comment.