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.
  • Loading branch information
pionbot authored and at-wat committed Jan 10, 2023
1 parent 5ce39f6 commit 03a6da1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
12 changes: 9 additions & 3 deletions .github/generate-authors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tidy-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03a6da1

Please sign in to comment.