Skip to content
Myr

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 file

Take it

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

lines 1–19why, one step back
1name: Test
23on: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'19

Bump actions/checkout from 2 to 3 (#1619)dependabot[bot]before adoption52e6099

line 20why, one step back
20 - uses: actions/checkout@v3

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

line 21why, one step back
21

Bump golangci/golangci-lint-action from 2 to 3.1.0 (#1615)dependabot[bot]before adoption5414d3d

line 22why, one step back
22 - uses: golangci/golangci-lint-action@v3.1.0

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

lines 23–38why, one step back
23 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 - 17

ci: test on Golang 1.18 (#1635)Unai Martinez-Corralbefore adoption65b1195

line 39why, one step back
39 - 18

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

lines 40–47why, one step back
40 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 }}.x47

Bump actions/checkout from 2 to 3 (#1619)dependabot[bot]before adoption52e6099

line 48why, one step back
48 - uses: actions/checkout@v3

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

line 49why, one step back
49

Bump actions/cache from 2 to 3 (#1640)dependabot[bot]before adoption3723151

line 50why, one step back
50 - uses: actions/cache@v3

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

lines 51–58why, one step back
51 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 }}" in

ci: test on Golang 1.18 (#1635)Unai Martinez-Corralbefore adoption65b1195

line 59why, one step back
59 16|17|18) _version='@latest';;

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

lines 60–64why, one step back
60 *) _version='';;
61 esac62 go install github.com/kyoh86/richgo"${_version}"63 go install github.com/mitchellh/gox"${_version}"64

ci/test: RICHGO_FORCE_COLOR (#1647)Unai Martinez-Corralbefore adoption5271cf4

line 65why, one step back
65 - run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH make test

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

lines 66–87why, one step back
66
67 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-go87

Bump actions/checkout from 2 to 3 (#1619)dependabot[bot]before adoption52e6099

line 88why, one step back
88 - uses: actions/checkout@v3

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

line 89why, one step back
89

Bump actions/cache from 2 to 3 (#1640)dependabot[bot]before adoption3723151

line 90why, one step back
90 - uses: actions/cache@v3

chore(ci): use golangci-lint-action (#1477)Matthieu MORELbefore adoptionff2c55e

lines 91–100why, one step back
91 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@latest100

ci/test: RICHGO_FORCE_COLOR (#1647)Unai Martinez-Corralbefore adoption5271cf4

line 101why, one step back
101 - run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin:$PATH make test