Skip to content
Myr

test.yml

This file

Path

.github/workflows/test.yml

130 lines · 2.8 KiB · YAML

Last changed by

landed by oscabrieladbc881

History of this file

Take it

The walk stopped after 200 commits: lines older than 89d7b83 point at it.

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 1–5why, one step back
1name: Test
23on:4 push:5 pull_request:

ci: add workflow_dispatch (#1387)Unai Martinez-Corralbefore adoption459fc5f

line 6why, one step back
6 workflow_dispatch:

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 7–10why, one step back
7
8env:9 GO111MODULE: on10

ci: add minimum GitHub token permissions for workflows (#1792)Varun Sharmabefore adoption23fc5e0

lines 11–13why, one step back
11permissions:
12 contents: read13

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 14–15why, one step back
14jobs:
15

add missing license headers (#1809)Unai Martinez-Corralbefore adoption6d978a9

lines 16–20why, one step back
16
17 lic-headers:18 runs-on: ubuntu-latest19 steps:20

build(deps): bump actions/checkout from 3 to 4 (#2028)dependabot[bot]before adoption48cea5c

line 21why, one step back
21 - uses: actions/checkout@v4

add missing license headers (#1809)Unai Martinez-Corralbefore adoption6d978a9

lines 22–27why, one step back
22
23 - run: >-24 docker run25 -v $(pwd):/wrk -w /wrk26 ghcr.io/google/addlicense27 -c 'The Cobra Authors'

update copyright year (#1927)Unai Martinez-Corralbefore adoption9e6b58a

line 28why, one step back
28 -y '2013-2023'

add missing license headers (#1809)Unai Martinez-Corralbefore adoption6d978a9

lines 29–34why, one step back
29 -l apache
30 -ignore '.github/**'31 -check32 .3334

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 35why, one step back
35 golangci-lint:

ci: add minimum GitHub token permissions for workflows (#1792)Varun Sharmabefore adoption23fc5e0

lines 36–38why, one step back
36 permissions:
37 contents: read # for actions/checkout to fetch code38 pull-requests: read # for golangci/golangci-lint-action to fetch pull requests

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 39–41why, one step back
39 runs-on: ubuntu-latest
40 steps:41

build(deps): bump actions/checkout from 3 to 4 (#2028)dependabot[bot]before adoption48cea5c

line 42why, one step back
42 - uses: actions/checkout@v4

ci: use action/setup-go's cache (#1783)Unai Martinez-Corralbefore adoption4065a33

line 43why, one step back
43

fix: actions/setup-go v6 (#2337)John McBridebefore adoption346d408

line 44why, one step back
44 - uses: actions/setup-go@v6

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 45why, one step back
45 with:

ci: test golang 1.22 (#2113)damasbefore adoptionc69ae4c

line 46why, one step back
46 go-version: '^1.22'

ci: test on Golang 1.19 (#1782)Unai Martinez-Corralbefore adoption7045405

line 47why, one step back
47 check-latest: true

ci: use action/setup-go's cache (#1783)Unai Martinez-Corralbefore adoption4065a33

line 48why, one step back
48 cache: true

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 49why, one step back
49

chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4

line 50why, one step back
50 - uses: golangci/golangci-lint-action@v8.0.0

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 51–54why, one step back
51 with:
52 version: latest53 args: --verbose54

add missing license headers (#1809)Unai Martinez-Corralbefore adoption6d978a9

line 55why, one step back
55

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 56–65why, one step back
56 test-unix:
57 strategy:58 fail-fast: false59 matrix:60 platform:61 - ubuntu62 - macOS63 go:64 - 1765 - 18

ci: test on Golang 1.19 (#1782)Unai Martinez-Corralbefore adoption7045405

line 66why, one step back
66 - 19

ci: test Golang 1.20 (#1925)Unai Martinez-Corralbefore adoptionfb36524

line 67why, one step back
67 - 20

ci: test golang 1.21 (#2024)Nuno Adregobefore adoptionc5dacb3

line 68why, one step back
68 - 21

ci: test golang 1.22 (#2113)damasbefore adoptionc69ae4c

line 69why, one step back
69 - 22

Test also with go 1.23 (#2182)Nir Sofferbefore adoption78bfc83

line 70why, one step back
70 - 23

Test with Go 1.24 (#2236)Chongyi Zhengbefore adoption0d417d8

line 71why, one step back
71 - 24

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 72–73why, one step back
72 name: '${{ matrix.platform }} | 1.${{ matrix.go }}.x'
73 runs-on: ${{ matrix.platform }}-latest74 # macOS runner environments require compiled binaries to contain an LC_UUID load command.75 # Go 1.24+ natively resolves this by writing LC_UUID in Go's internal linker.76 # For Go < 1.24, we pass -ldflags=-linkmode=external on macOS to force external linking via the system linker.77 env:78 GO_TEST_FLAGS: ${{ matrix.platform == 'macOS' && matrix.go < 24 && '-ldflags=-linkmode=external' || '' }}

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 79–80why, one step back
79 steps:
80

build(deps): bump actions/checkout from 3 to 4 (#2028)dependabot[bot]before adoption48cea5c

line 81why, one step back
81 - uses: actions/checkout@v4

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 82why, one step back
82

fix: actions/setup-go v6 (#2337)John McBridebefore adoption346d408

line 83why, one step back
83 - uses: actions/setup-go@v6

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 84why, one step back
84 with:

ci: use action/setup-go's cache (#1783)Unai Martinez-Corralbefore adoption4065a33

lines 85–86why, one step back
85 go-version: 1.${{ matrix.go }}.x
86 cache: true

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 87–89why, one step back
87
88 - run: |89 export GOBIN=$HOME/go/bin

ci: deprecate go 1.15 (#1866)Unai Martinez-Corralbefore adoption9235920

lines 90–91why, one step back
90 go install github.com/kyoh86/richgo@latest
91 go install github.com/mitchellh/gox@latest

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 92why, one step back
92

Makefile: add target richtest (#1865)Unai Martinez-Corralbefore adoption6200c8e

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

add missing license headers (#1809)Unai Martinez-Corralbefore adoption6d978a9

line 94why, one step back
94

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 95–116why, one step back
95
96 test-win:97 name: MINGW6498 defaults:99 run:100 shell: msys2 {0}101 runs-on: windows-latest102 steps:103104 - shell: bash105 run: git config --global core.autocrlf input106107 - uses: msys2/setup-msys2@v2108 with:109 msystem: MINGW64110 update: true111 install: >112 git113 make114 unzip115 mingw-w64-x86_64-go116

build(deps): bump actions/checkout from 3 to 4 (#2028)dependabot[bot]before adoption48cea5c

line 117why, one step back
117 - uses: actions/checkout@v4

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 118why, one step back
118

build(deps): bump actions/cache from 3 to 4 (#2102)dependabot[bot]before adoptiona30cee5

line 119why, one step back
119 - uses: actions/cache@v4

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 120–129why, one step back
120 with:
121 path: ~/go/pkg/mod122 key: ${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}123 restore-keys: ${{ runner.os }}-${{ matrix.go }}-124125 - run: |126 export GOBIN=$HOME/go/bin127 go install github.com/kyoh86/richgo@latest128 go install github.com/mitchellh/gox@latest129

Makefile: add target richtest (#1865)Unai Martinez-Corralbefore adoption6200c8e

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