|
7 | 7 | all: |
8 | 8 | strategy: |
9 | 9 | 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] |
15 | 14 | runs-on: ${{ matrix.os }} |
16 | 15 | steps: |
17 | 16 | - name: Install Go ${{ matrix.go-version }} |
18 | | - uses: actions/setup-go@v2 |
| 17 | + uses: actions/setup-go@v3 |
19 | 18 | with: |
20 | 19 | go-version: ${{ matrix.go-version }} |
21 | 20 | - name: Install task ${{ matrix.task-version }} |
22 | 21 | run: go install github.com/go-task/task/v3/cmd/task@${{ matrix.task-version }} |
23 | 22 | - name: Install gotestsum ${{ matrix.gotestsum-version }} |
24 | 23 | run: go install gotest.tools/gotestsum@${{ matrix.gotestsum-version }} |
25 | 24 | - name: Checkout code |
26 | | - uses: actions/checkout@v2 |
| 25 | + uses: actions/checkout@v3 |
27 | 26 | with: |
28 | 27 | # By default, actions/checkout will persist the GITHUB_TOKEN, so that further |
29 | 28 | # steps in the job can perform authenticated git commands (that is: WRITE to |
30 | 29 | # the repo). Following the Principle of least privilege, we disable this as long |
31 | 30 | # as we don't need it. |
32 | 31 | 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 |
33 | 37 | - name: Build |
34 | 38 | run: task build |
35 | 39 | - name: Test |
36 | 40 | run: task test |
37 | 41 | - 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 |
0 commit comments