Skip to content

Commit d607c16

Browse files
pionbotat-wat
authored andcommittedJan 10, 2023
Update CI configs to v0.9.0
Update lint scripts and CI configs.
1 parent 61521a0 commit d607c16

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed
 

Diff for: ‎.github/generate-authors.sh

+9-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
set -e
1313

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

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

4243

4344
IFS=$'\n' #Only split on newline
44-
for CONTRIBUTOR in $(git log --format='%aN <%aE>' | LC_ALL=C.UTF-8 sort -uf); do
45+
for CONTRIBUTOR in $(
46+
(
47+
git log --format='%aN <%aE>'
48+
git log --format='%(trailers:key=Co-authored-by)' | sed -n 's/^[^:]*:\s*//p'
49+
) | LC_ALL=C.UTF-8 sort -uf
50+
); do
4551
if shouldBeIncluded ${CONTRIBUTOR}; then
4652
CONTRIBUTORS+=("${CONTRIBUTOR}")
4753
fi

Diff for: ‎.github/workflows/test.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
strategy:
2828
matrix:
29-
go: ["1.17", "1.18"] # auto-update/supported-go-version-list
29+
go: ['1.19', '1.18'] # auto-update/supported-go-version-list
3030
fail-fast: false
3131
name: Go ${{ matrix.go }}
3232
steps:
@@ -67,7 +67,7 @@ jobs:
6767
-v -race 2>&1 | grep -v '^go: downloading' | tee /tmp/gotest.log | gotestfmt
6868
6969
- name: Upload test log
70-
uses: actions/upload-artifact@v2
70+
uses: actions/upload-artifact@v3
7171
if: always()
7272
with:
7373
name: test-log-${{ matrix.go }}
@@ -79,7 +79,7 @@ jobs:
7979
if [ -f .github/.ci.conf ]; then . .github/.ci.conf; fi
8080
if [ -n "${TEST_HOOK}" ]; then ${TEST_HOOK}; fi
8181
82-
- uses: codecov/codecov-action@v2
82+
- uses: codecov/codecov-action@v3
8383
with:
8484
name: codecov-umbrella
8585
fail_ci_if_error: true
@@ -89,7 +89,7 @@ jobs:
8989
runs-on: ubuntu-latest
9090
strategy:
9191
matrix:
92-
go: ["1.17", "1.18"] # auto-update/supported-go-version-list
92+
go: ['1.19', '1.18'] # auto-update/supported-go-version-list
9393
fail-fast: false
9494
name: Go i386 ${{ matrix.go }}
9595
steps:
@@ -145,7 +145,7 @@ jobs:
145145
- name: Download Go
146146
run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf -
147147
env:
148-
GO_VERSION: 1.17 # auto-update/latest-go-version
148+
GO_VERSION: '1.19' # auto-update/latest-go-version
149149

150150
- name: Set Go Root
151151
run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV
@@ -167,7 +167,7 @@ jobs:
167167
-exec="${GO_JS_WASM_EXEC}" \
168168
-v ./...
169169
170-
- uses: codecov/codecov-action@v2
170+
- uses: codecov/codecov-action@v3
171171
with:
172172
name: codecov-umbrella
173173
fail_ci_if_error: true

Diff for: ‎.github/workflows/tidy-check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup Go
3131
uses: actions/setup-go@v3
3232
with:
33-
go-version: 1.17 # auto-update/latest-go-version
33+
go-version: '1.19' # auto-update/latest-go-version
3434
- name: check
3535
run: |
3636
go mod download

Diff for: ‎AUTHORS.txt

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Daniele Sluijters <daenney@users.noreply.github.com>
1515
Graham King <graham@gkgk.org>
1616
Guilherme <gqgs@protonmail.com>
1717
Hugo Arregui <hugo.arregui@gmail.com>
18+
Hugo Arregui <hugo@decentraland.org>
1819
Jason <jabrady42@gmail.com>
1920
Jerko Steiner <jerko.steiner@gmail.com>
2021
John Bradley <jrb@turrettech.com>

0 commit comments

Comments
 (0)
Please sign in to comment.