test.yml
This file
Path
.github/workflows/test.yml
101 lines · 2.1 KiB · YAML
Last changed by
ci/test: RICHGO_FORCE_COLOR (#1647)Unai Martinez-Corralbefore adoption5271cf4
History of this fileTake it
chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
lines 1–19why, one step back1name: Test23on:4 push:5 pull_request:67env:8 GO111MODULE: on910jobs:1112 golangci-lint:13 runs-on: ubuntu-latest14 steps:1516 - uses: actions/setup-go@v217 with:18 go-version: '1.17'19Bump actions/checkout from 2 to 3 (#1619)dependabot[bot]before adoption52e6099
line 20why, one step back20 - uses: actions/checkout@v3chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
line 21why, one step back21Bump golangci/golangci-lint-action from 2 to 3.1.0 (#1615)dependabot[bot]before adoption5414d3d
line 22why, one step back22 - uses: golangci/golangci-lint-action@v3.1.0chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
lines 23–38why, one step back23 with:24 version: latest25 args: --verbose2627 test-unix:28 strategy:29 fail-fast: false30 matrix:31 platform:32 - ubuntu33 - macOS34 go:35 - 1436 - 1537 - 1638 - 17ci: test on Golang 1.18 (#1635)Unai Martinez-Corralbefore adoption65b1195
line 39why, one step back39 - 18chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
lines 40–47why, one step back40 name: '${{ matrix.platform }} | 1.${{ matrix.go }}.x'41 runs-on: ${{ matrix.platform }}-latest42 steps:4344 - uses: actions/setup-go@v245 with:46 go-version: 1.${{ matrix.go }}.x47Bump actions/checkout from 2 to 3 (#1619)dependabot[bot]before adoption52e6099
line 48why, one step back48 - uses: actions/checkout@v3chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
line 49why, one step back49Bump actions/cache from 2 to 3 (#1640)dependabot[bot]before adoption3723151
line 50why, one step back50 - uses: actions/cache@v3chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
lines 51–58why, one step back51 with:52 path: ~/go/pkg/mod53 key: ${{ runner.os }}-1.${{ matrix.go }}.x-${{ hashFiles('**/go.sum') }}54 restore-keys: ${{ runner.os }}-1.${{ matrix.go }}.x-5556 - run: |57 export GOBIN=$HOME/go/bin58 case "${{ matrix.go }}" inci: test on Golang 1.18 (#1635)Unai Martinez-Corralbefore adoption65b1195
line 59why, one step back59 16|17|18) _version='@latest';;chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
lines 60–64why, one step back60 *) _version='';;61 esac62 go install github.com/kyoh86/richgo"${_version}"63 go install github.com/mitchellh/gox"${_version}"64ci/test: RICHGO_FORCE_COLOR (#1647)Unai Martinez-Corralbefore adoption5271cf4
line 65why, one step back65 - run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH make testchore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
lines 66–87why, one step back6667 test-win:68 name: MINGW6469 defaults:70 run:71 shell: msys2 {0}72 runs-on: windows-latest73 steps:7475 - shell: bash76 run: git config --global core.autocrlf input7778 - uses: msys2/setup-msys2@v279 with:80 msystem: MINGW6481 update: true82 install: >83 git84 make85 unzip86 mingw-w64-x86_64-go87Bump actions/checkout from 2 to 3 (#1619)dependabot[bot]before adoption52e6099
line 88why, one step back88 - uses: actions/checkout@v3chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
line 89why, one step back89Bump actions/cache from 2 to 3 (#1640)dependabot[bot]before adoption3723151
line 90why, one step back90 - uses: actions/cache@v3chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e
lines 91–100why, one step back91 with:92 path: ~/go/pkg/mod93 key: ${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}94 restore-keys: ${{ runner.os }}-${{ matrix.go }}-9596 - run: |97 export GOBIN=$HOME/go/bin98 go install github.com/kyoh86/richgo@latest99 go install github.com/mitchellh/gox@latest100ci/test: RICHGO_FORCE_COLOR (#1647)Unai Martinez-Corralbefore adoption5271cf4
line 101why, one step back101 - run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin:$PATH make test