Skip to content

Commit 205e480

Browse files
pionbotdaenney
authored andcommittedJan 10, 2023
Update CI configs to v0.9.0
Update lint scripts and CI configs.
1 parent f40c61d commit 205e480

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed
 

‎.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

‎.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
go-version: '1.18' # auto-update/latest-go-version
1919
- name: Build and release
20-
uses: goreleaser/goreleaser-action@v3
20+
uses: goreleaser/goreleaser-action@v4
2121
with:
2222
version: latest
2323
args: release --rm-dist

‎.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

‎.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

‎AUTHORS.txt

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Lukas Lihotzki <lukas@lihotzki.de>
3636
ManuelBk <26275612+ManuelBk@users.noreply.github.com>
3737
Michael Zabka <zabka.michael@gmail.com>
3838
Michiel De Backker <mail@backkem.me>
39+
Rachel Chen <rachel@chens.email>
3940
Robert Eperjesi <eperjesi@uber.com>
4041
Ryan Gordon <ryan.gordon@getcruise.com>
4142
Sean DuBois <seaduboi@amazon.com>

0 commit comments

Comments
 (0)
Please sign in to comment.