From 6a3ed6847073ac794009d44f92396c8bf5198f5a Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 26 Nov 2025 12:31:07 -0300 Subject: [PATCH 1/3] ci: lfs: true Signed-off-by: Carlos Alexandro Becker --- .github/workflows/mosaic.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mosaic.yml b/.github/workflows/mosaic.yml index 404b8f84..965be172 100644 --- a/.github/workflows/mosaic.yml +++ b/.github/workflows/mosaic.yml @@ -21,6 +21,8 @@ jobs: working-directory: ./mosaic steps: - uses: actions/checkout@v6 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./mosaic/go.mod @@ -81,5 +83,3 @@ jobs: with: file: ./coverage.txt token: ${{ secrets.CODECOV_TOKEN }} - - From 0eb299ba14e88cec534f314ff5f86ad8a8a07b16 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 26 Nov 2025 12:35:40 -0300 Subject: [PATCH 2/3] fix: build when git-lfs, go-version-file on coverage, properly cache Signed-off-by: Carlos Alexandro Becker --- .github/workflows/ansi.yml | 18 ++++++++---------- .github/workflows/cellbuf.yml | 18 ++++++++---------- .github/workflows/charmtone.yml | 18 ++++++++---------- .github/workflows/colors.yml | 18 ++++++++---------- .github/workflows/conpty.yml | 18 ++++++++---------- .github/workflows/editor.yml | 18 ++++++++---------- .github/workflows/errors.yml | 18 ++++++++---------- .github/workflows/examples.yml | 18 ++++++++---------- .github/workflows/gitignore.yml | 18 ++++++++---------- .github/workflows/golden.yml | 18 ++++++++---------- .github/workflows/higherorder.yml | 18 ++++++++---------- .github/workflows/input.yml | 18 ++++++++---------- .github/workflows/json.yml | 18 ++++++++---------- .github/workflows/maps.yml | 18 ++++++++---------- .github/workflows/mosaic.yml | 18 ++++++++---------- .github/workflows/open.yml | 18 ++++++++---------- .github/workflows/ordered.yml | 18 ++++++++---------- .github/workflows/pony.yml | 20 ++++++++------------ .github/workflows/powernap.yml | 18 ++++++++---------- .github/workflows/slice.yml | 18 ++++++++---------- .github/workflows/sshkey.yml | 18 ++++++++---------- .github/workflows/strings.yml | 18 ++++++++---------- .github/workflows/teatest-v2.yml | 18 ++++++++---------- .github/workflows/teatest.yml | 18 ++++++++---------- .github/workflows/term.yml | 18 ++++++++---------- .github/workflows/termios.yml | 18 ++++++++---------- .github/workflows/toner.yml | 18 ++++++++---------- .github/workflows/vcr.yml | 18 ++++++++---------- .github/workflows/vt.yml | 18 ++++++++---------- .github/workflows/wcwidth.yml | 18 ++++++++---------- .github/workflows/windows.yml | 18 ++++++++---------- .github/workflows/xpty.yml | 18 ++++++++---------- scripts/builds | 16 +++++++--------- 33 files changed, 263 insertions(+), 331 deletions(-) diff --git a/.github/workflows/ansi.yml b/.github/workflows/ansi.yml index 6d35adbb..6c8620d6 100644 --- a/.github/workflows/ansi.yml +++ b/.github/workflows/ansi.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./ansi steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./ansi/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/cellbuf.yml b/.github/workflows/cellbuf.yml index 4f6c6faa..840845ae 100644 --- a/.github/workflows/cellbuf.yml +++ b/.github/workflows/cellbuf.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./cellbuf steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./cellbuf/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/charmtone.yml b/.github/workflows/charmtone.yml index 89539fe4..0f2b2605 100644 --- a/.github/workflows/charmtone.yml +++ b/.github/workflows/charmtone.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/charmtone steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/charmtone/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/colors.yml b/.github/workflows/colors.yml index babc781a..48f71b32 100644 --- a/.github/workflows/colors.yml +++ b/.github/workflows/colors.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./colors steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./colors/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/conpty.yml b/.github/workflows/conpty.yml index 9022284f..0b1f6781 100644 --- a/.github/workflows/conpty.yml +++ b/.github/workflows/conpty.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./conpty steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./conpty/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/editor.yml b/.github/workflows/editor.yml index 48963eec..de2fb519 100644 --- a/.github/workflows/editor.yml +++ b/.github/workflows/editor.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./editor steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./editor/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/errors.yml b/.github/workflows/errors.yml index d929fdc1..28a04b7e 100644 --- a/.github/workflows/errors.yml +++ b/.github/workflows/errors.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./errors steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./errors/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index f7eafd57..1d2bf4ba 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./examples steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./examples/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/gitignore.yml b/.github/workflows/gitignore.yml index 5b913169..fd035b69 100644 --- a/.github/workflows/gitignore.yml +++ b/.github/workflows/gitignore.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./gitignore steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./gitignore/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/golden.yml b/.github/workflows/golden.yml index f201077e..7444fdd4 100644 --- a/.github/workflows/golden.yml +++ b/.github/workflows/golden.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/golden steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/golden/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/higherorder.yml b/.github/workflows/higherorder.yml index 0ce06009..21093fbf 100644 --- a/.github/workflows/higherorder.yml +++ b/.github/workflows/higherorder.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/higherorder steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/higherorder/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/input.yml b/.github/workflows/input.yml index f2e0284f..e7fd13ce 100644 --- a/.github/workflows/input.yml +++ b/.github/workflows/input.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./input steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./input/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/json.yml b/.github/workflows/json.yml index fa01fe56..16675cb7 100644 --- a/.github/workflows/json.yml +++ b/.github/workflows/json.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./json steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./json/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/maps.yml b/.github/workflows/maps.yml index 56f6ffdb..891b43fc 100644 --- a/.github/workflows/maps.yml +++ b/.github/workflows/maps.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/maps steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/maps/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/mosaic.yml b/.github/workflows/mosaic.yml index 965be172..fbd36e94 100644 --- a/.github/workflows/mosaic.yml +++ b/.github/workflows/mosaic.yml @@ -20,7 +20,7 @@ jobs: run: working-directory: ./mosaic steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 with: lfs: true - uses: actions/setup-go@v6 @@ -58,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -67,19 +66,18 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt token: ${{ secrets.CODECOV_TOKEN }} + + diff --git a/.github/workflows/open.yml b/.github/workflows/open.yml index 601fed19..32e8cca8 100644 --- a/.github/workflows/open.yml +++ b/.github/workflows/open.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/open steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/open/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/ordered.yml b/.github/workflows/ordered.yml index 734178b5..ba4da358 100644 --- a/.github/workflows/ordered.yml +++ b/.github/workflows/ordered.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/ordered steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/ordered/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/pony.yml b/.github/workflows/pony.yml index d8ae2df5..e20d2ff8 100644 --- a/.github/workflows/pony.yml +++ b/.github/workflows/pony.yml @@ -21,6 +21,8 @@ jobs: working-directory: ./pony steps: - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./pony/go.mod @@ -52,14 +54,10 @@ jobs: uses: charmbracelet/meta/.github/workflows/lint.yml@main with: directory: pony - golangci_path: .golangci.yml - golangci_version: v2.4 - timeout: 10m coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -68,20 +66,18 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v5 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt token: ${{ secrets.CODECOV_TOKEN }} + diff --git a/.github/workflows/powernap.yml b/.github/workflows/powernap.yml index fa0e8310..fe89b588 100644 --- a/.github/workflows/powernap.yml +++ b/.github/workflows/powernap.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./powernap steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./powernap/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/slice.yml b/.github/workflows/slice.yml index 88bb8b1a..b0c28360 100644 --- a/.github/workflows/slice.yml +++ b/.github/workflows/slice.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/slice steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/slice/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/sshkey.yml b/.github/workflows/sshkey.yml index 09dcd29e..7dba0431 100644 --- a/.github/workflows/sshkey.yml +++ b/.github/workflows/sshkey.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./sshkey steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./sshkey/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/strings.yml b/.github/workflows/strings.yml index 98bffcb9..c6140cc5 100644 --- a/.github/workflows/strings.yml +++ b/.github/workflows/strings.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/strings steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/strings/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/teatest-v2.yml b/.github/workflows/teatest-v2.yml index fd71af32..ac433955 100644 --- a/.github/workflows/teatest-v2.yml +++ b/.github/workflows/teatest-v2.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/teatest/v2 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/teatest/v2/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/teatest.yml b/.github/workflows/teatest.yml index 2825b815..98446560 100644 --- a/.github/workflows/teatest.yml +++ b/.github/workflows/teatest.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/teatest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/teatest/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/term.yml b/.github/workflows/term.yml index b7d7396b..f07739fd 100644 --- a/.github/workflows/term.yml +++ b/.github/workflows/term.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./term steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./term/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/termios.yml b/.github/workflows/termios.yml index 3ee67c18..98bc13d8 100644 --- a/.github/workflows/termios.yml +++ b/.github/workflows/termios.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./termios steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./termios/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/toner.yml b/.github/workflows/toner.yml index a01a9270..66dcb7e5 100644 --- a/.github/workflows/toner.yml +++ b/.github/workflows/toner.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./exp/toner steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./exp/toner/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/vcr.yml b/.github/workflows/vcr.yml index 1df66dee..5cd2f771 100644 --- a/.github/workflows/vcr.yml +++ b/.github/workflows/vcr.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./vcr steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./vcr/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/vt.yml b/.github/workflows/vt.yml index d60a9fd0..fe9daf4f 100644 --- a/.github/workflows/vt.yml +++ b/.github/workflows/vt.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./vt steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./vt/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/wcwidth.yml b/.github/workflows/wcwidth.yml index 64f1b7c6..d3e0fcc4 100644 --- a/.github/workflows/wcwidth.yml +++ b/.github/workflows/wcwidth.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./wcwidth steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./wcwidth/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 049c94e7..28e9cc5e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./windows steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./windows/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/.github/workflows/xpty.yml b/.github/workflows/xpty.yml index a0600ad9..90f2b2c8 100644 --- a/.github/workflows/xpty.yml +++ b/.github/workflows/xpty.yml @@ -20,7 +20,9 @@ jobs: run: working-directory: ./xpty steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./xpty/go.mod @@ -56,7 +58,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -65,18 +66,15 @@ jobs: env: GO111MODULE: "on" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt diff --git a/scripts/builds b/scripts/builds index 49ff410c..197c9d8b 100755 --- a/scripts/builds +++ b/scripts/builds @@ -35,6 +35,8 @@ jobs: working-directory: $(dirname "$mod") steps: - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: $mod @@ -70,7 +72,6 @@ jobs: coverage: strategy: matrix: - go-version: [^1] os: [ubuntu-latest, windows-latest, macos-latest] defaults: run: @@ -79,18 +80,15 @@ jobs: env: GO111MODULE: \"on\" steps: - - name: Install Go - uses: actions/setup-go@v6 + - uses: actions/checkout@v5 + with: + lfs: true + - uses: actions/setup-go@v6 with: go-version: \${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v5 - - - name: Coverage + - name: test run: | go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 with: file: ./coverage.txt From b8b64b961044d584120d396fddb3527c568d3234 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 26 Nov 2025 12:37:11 -0300 Subject: [PATCH 3/3] fix: unify build/coverage step both do the same thing, pretty much Signed-off-by: Carlos Alexandro Becker --- .github/workflows/ansi.yml | 32 ++++++------------------------- .github/workflows/cellbuf.yml | 32 ++++++------------------------- .github/workflows/charmtone.yml | 32 ++++++------------------------- .github/workflows/colors.yml | 32 ++++++------------------------- .github/workflows/conpty.yml | 32 ++++++------------------------- .github/workflows/editor.yml | 32 ++++++------------------------- .github/workflows/errors.yml | 32 ++++++------------------------- .github/workflows/examples.yml | 32 ++++++------------------------- .github/workflows/gitignore.yml | 32 ++++++------------------------- .github/workflows/golden.yml | 32 ++++++------------------------- .github/workflows/higherorder.yml | 32 ++++++------------------------- .github/workflows/input.yml | 32 ++++++------------------------- .github/workflows/json.yml | 32 ++++++------------------------- .github/workflows/maps.yml | 32 ++++++------------------------- .github/workflows/mosaic.yml | 32 ++++++------------------------- .github/workflows/open.yml | 32 ++++++------------------------- .github/workflows/ordered.yml | 32 ++++++------------------------- .github/workflows/pony.yml | 32 ++++++------------------------- .github/workflows/powernap.yml | 32 ++++++------------------------- .github/workflows/slice.yml | 32 ++++++------------------------- .github/workflows/sshkey.yml | 32 ++++++------------------------- .github/workflows/strings.yml | 32 ++++++------------------------- .github/workflows/teatest-v2.yml | 32 ++++++------------------------- .github/workflows/teatest.yml | 32 ++++++------------------------- .github/workflows/term.yml | 32 ++++++------------------------- .github/workflows/termios.yml | 32 ++++++------------------------- .github/workflows/toner.yml | 32 ++++++------------------------- .github/workflows/vcr.yml | 32 ++++++------------------------- .github/workflows/vt.yml | 32 ++++++------------------------- .github/workflows/wcwidth.yml | 32 ++++++------------------------- .github/workflows/windows.yml | 32 ++++++------------------------- .github/workflows/xpty.yml | 32 ++++++------------------------- scripts/builds | 32 ++++++------------------------- 33 files changed, 198 insertions(+), 858 deletions(-) diff --git a/.github/workflows/ansi.yml b/.github/workflows/ansi.yml index 6c8620d6..c4f2f93b 100644 --- a/.github/workflows/ansi.yml +++ b/.github/workflows/ansi.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./ansi/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: ansi - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./ansi - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/cellbuf.yml b/.github/workflows/cellbuf.yml index 840845ae..6c4740d2 100644 --- a/.github/workflows/cellbuf.yml +++ b/.github/workflows/cellbuf.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./cellbuf/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: cellbuf - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./cellbuf - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/charmtone.yml b/.github/workflows/charmtone.yml index 0f2b2605..1ab7f362 100644 --- a/.github/workflows/charmtone.yml +++ b/.github/workflows/charmtone.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/charmtone/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/charmtone - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/charmtone - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/colors.yml b/.github/workflows/colors.yml index 48f71b32..e05f7e8d 100644 --- a/.github/workflows/colors.yml +++ b/.github/workflows/colors.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./colors/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: colors - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./colors - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/conpty.yml b/.github/workflows/conpty.yml index 0b1f6781..dc5550c3 100644 --- a/.github/workflows/conpty.yml +++ b/.github/workflows/conpty.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./conpty/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: conpty - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./conpty - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/editor.yml b/.github/workflows/editor.yml index de2fb519..3f41dce9 100644 --- a/.github/workflows/editor.yml +++ b/.github/workflows/editor.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./editor/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: editor - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./editor - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/errors.yml b/.github/workflows/errors.yml index 28a04b7e..1359312d 100644 --- a/.github/workflows/errors.yml +++ b/.github/workflows/errors.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./errors/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: errors - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./errors - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 1d2bf4ba..678fc940 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./examples/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: examples - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./examples - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/gitignore.yml b/.github/workflows/gitignore.yml index fd035b69..6b8bf4aa 100644 --- a/.github/workflows/gitignore.yml +++ b/.github/workflows/gitignore.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./gitignore/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: gitignore - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./gitignore - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/golden.yml b/.github/workflows/golden.yml index 7444fdd4..1c3a2a22 100644 --- a/.github/workflows/golden.yml +++ b/.github/workflows/golden.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/golden/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/golden - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/golden - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/higherorder.yml b/.github/workflows/higherorder.yml index 21093fbf..18aae556 100644 --- a/.github/workflows/higherorder.yml +++ b/.github/workflows/higherorder.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/higherorder/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/higherorder - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/higherorder - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/input.yml b/.github/workflows/input.yml index e7fd13ce..14969aa3 100644 --- a/.github/workflows/input.yml +++ b/.github/workflows/input.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./input/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: input - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./input - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/json.yml b/.github/workflows/json.yml index 16675cb7..82705b3b 100644 --- a/.github/workflows/json.yml +++ b/.github/workflows/json.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./json/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: json - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./json - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/maps.yml b/.github/workflows/maps.yml index 891b43fc..026af37f 100644 --- a/.github/workflows/maps.yml +++ b/.github/workflows/maps.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/maps/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/maps - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/maps - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/mosaic.yml b/.github/workflows/mosaic.yml index fbd36e94..b2ec9ce4 100644 --- a/.github/workflows/mosaic.yml +++ b/.github/workflows/mosaic.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./mosaic/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: mosaic - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./mosaic - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/open.yml b/.github/workflows/open.yml index 32e8cca8..548c6a20 100644 --- a/.github/workflows/open.yml +++ b/.github/workflows/open.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/open/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/open - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/open - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/ordered.yml b/.github/workflows/ordered.yml index ba4da358..e2514da2 100644 --- a/.github/workflows/ordered.yml +++ b/.github/workflows/ordered.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/ordered/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/ordered - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/ordered - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/pony.yml b/.github/workflows/pony.yml index e20d2ff8..35d3a964 100644 --- a/.github/workflows/pony.yml +++ b/.github/workflows/pony.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./pony/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: pony - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./pony - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/powernap.yml b/.github/workflows/powernap.yml index fe89b588..a75d358d 100644 --- a/.github/workflows/powernap.yml +++ b/.github/workflows/powernap.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./powernap/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: powernap - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./powernap - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/slice.yml b/.github/workflows/slice.yml index b0c28360..ce2028bc 100644 --- a/.github/workflows/slice.yml +++ b/.github/workflows/slice.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/slice/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/slice - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/slice - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/sshkey.yml b/.github/workflows/sshkey.yml index 7dba0431..b794b411 100644 --- a/.github/workflows/sshkey.yml +++ b/.github/workflows/sshkey.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./sshkey/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: sshkey - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./sshkey - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/strings.yml b/.github/workflows/strings.yml index c6140cc5..57caff71 100644 --- a/.github/workflows/strings.yml +++ b/.github/workflows/strings.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/strings/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/strings - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/strings - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/teatest-v2.yml b/.github/workflows/teatest-v2.yml index ac433955..f1b061e6 100644 --- a/.github/workflows/teatest-v2.yml +++ b/.github/workflows/teatest-v2.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/teatest/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/teatest/v2 - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/teatest/v2 - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/teatest.yml b/.github/workflows/teatest.yml index 98446560..5b15e7a3 100644 --- a/.github/workflows/teatest.yml +++ b/.github/workflows/teatest.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/teatest/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/teatest - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/teatest - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/term.yml b/.github/workflows/term.yml index f07739fd..0457586a 100644 --- a/.github/workflows/term.yml +++ b/.github/workflows/term.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./term/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: term - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./term - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/termios.yml b/.github/workflows/termios.yml index 98bc13d8..be3d172d 100644 --- a/.github/workflows/termios.yml +++ b/.github/workflows/termios.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./termios/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: termios - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./termios - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/toner.yml b/.github/workflows/toner.yml index 66dcb7e5..6aaabfe9 100644 --- a/.github/workflows/toner.yml +++ b/.github/workflows/toner.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./exp/toner/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: exp/toner - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/toner - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/vcr.yml b/.github/workflows/vcr.yml index 5cd2f771..2852903a 100644 --- a/.github/workflows/vcr.yml +++ b/.github/workflows/vcr.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./vcr/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: vcr - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./vcr - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/vt.yml b/.github/workflows/vt.yml index fe9daf4f..857433b4 100644 --- a/.github/workflows/vt.yml +++ b/.github/workflows/vt.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./vt/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: vt - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./vt - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/wcwidth.yml b/.github/workflows/wcwidth.yml index d3e0fcc4..f5b034d2 100644 --- a/.github/workflows/wcwidth.yml +++ b/.github/workflows/wcwidth.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./wcwidth/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: wcwidth - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./wcwidth - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 28e9cc5e..3a50bf91 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./windows/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: windows - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./windows - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/.github/workflows/xpty.yml b/.github/workflows/xpty.yml index 90f2b2c8..f4a4c941 100644 --- a/.github/workflows/xpty.yml +++ b/.github/workflows/xpty.yml @@ -29,7 +29,12 @@ jobs: cache: true cache-dependency-path: ./xpty/go.sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -55,29 +60,4 @@ jobs: with: directory: xpty - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./xpty - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: ${{ secrets.CODECOV_TOKEN }} - diff --git a/scripts/builds b/scripts/builds index 197c9d8b..e7fb8246 100755 --- a/scripts/builds +++ b/scripts/builds @@ -43,7 +43,12 @@ jobs: cache: true cache-dependency-path: $sum - run: go build -v ./... - - run: go test -race -v ./... + - run: | + go test -race -covermode=atomic -coverprofile='coverage.txt' ./... + - uses: codecov/codecov-action@v5 + with: + file: ./coverage.txt + token: \${{ secrets.CODECOV_TOKEN }} dependabot: needs: [build] @@ -69,30 +74,5 @@ jobs: with: directory: $(dirname "$mod" | cut -f2- -d/) - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: $(dirname "$mod") - runs-on: \${{ matrix.os }} - env: - GO111MODULE: \"on\" - steps: - - uses: actions/checkout@v5 - with: - lfs: true - - uses: actions/setup-go@v6 - with: - go-version: \${{ matrix.go-version }} - - name: test - run: | - go test -race -covermode=atomic -coverprofile='coverage.txt' ./... - - uses: codecov/codecov-action@v5 - with: - file: ./coverage.txt - token: \${{ secrets.CODECOV_TOKEN }} - " >"./.github/workflows/${name}.yml" done