Skip to content

Commit 2ec3c0f

Browse files
committed
fix ci; update to Go 1.19, update all platforms
1 parent 941181e commit 2ec3c0f

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,36 @@ jobs:
77
all:
88
strategy:
99
matrix:
10-
go-version: [1.16.x]
11-
# macOS BigSur 11.0 is in private beta, so we use Catalina 10.15
12-
os: [ubuntu-20.04, macos-10.15, windows-2019]
13-
task-version: [v3.3.0]
14-
gotestsum-version: [v1.6.3]
10+
go-version: [1.19.x]
11+
os: [ubuntu-22.04, macos-12, windows-2022]
12+
task-version: [v3.20.0]
13+
gotestsum-version: [v1.9.0]
1514
runs-on: ${{ matrix.os }}
1615
steps:
1716
- name: Install Go ${{ matrix.go-version }}
18-
uses: actions/setup-go@v2
17+
uses: actions/setup-go@v3
1918
with:
2019
go-version: ${{ matrix.go-version }}
2120
- name: Install task ${{ matrix.task-version }}
2221
run: go install github.com/go-task/task/v3/cmd/task@${{ matrix.task-version }}
2322
- name: Install gotestsum ${{ matrix.gotestsum-version }}
2423
run: go install gotest.tools/gotestsum@${{ matrix.gotestsum-version }}
2524
- name: Checkout code
26-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2726
with:
2827
# By default, actions/checkout will persist the GITHUB_TOKEN, so that further
2928
# steps in the job can perform authenticated git commands (that is: WRITE to
3029
# the repo). Following the Principle of least privilege, we disable this as long
3130
# as we don't need it.
3231
persist-credentials: false
32+
# Number of commits to fetch. Default: 1
33+
# We need to fetch more to find the latest tag, to create the version string.
34+
# Bug? If we pass a non-zero value, it uses `git fetch --no-tags`, so we are
35+
# forced to clone the whole history, by passing `0`.
36+
fetch-depth: 0
3337
- name: Build
3438
run: task build
3539
- name: Test
3640
run: task test
3741
- name: timeit smoke
38-
run: ./bin/timeit -ticker=200ms ./bin/sleepit default -sleep=1s
42+
run: ./bin/timeit --ticker=200ms ./bin/sleepit default -sleep=1s

pkg/timeit/testdata/run.txtar

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
#
44
! exec timeit non-existing
55
! stdout .
6-
stderr 'timeit: starting child: exec: "non-existing": executable file not found in \$PATH'
6+
stderr 'timeit: starting child: exec: "non-existing": executable file not found in '
77

88
#
99
# non existing command is an error, absolute path
1010
#
1111
! exec timeit /non-existing
1212
! stdout .
13-
stderr 'timeit: starting child: fork\/exec \/non-existing: no such file or directory'
13+
stderr 'timeit: starting child: .*exec .* (no such file or directory)|(file does not exist)'
14+
1415

1516
#
1617
# child status 0 is forwarded

0 commit comments

Comments
 (0)