diff --git a/.github/workflows/ansi.yml b/.github/workflows/ansi.yml index 6d35adbb..c4f2f93b 100644 --- a/.github/workflows/ansi.yml +++ b/.github/workflows/ansi.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: ansi - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./ansi - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 4f6c6faa..6c4740d2 100644 --- a/.github/workflows/cellbuf.yml +++ b/.github/workflows/cellbuf.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: cellbuf - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./cellbuf - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 89539fe4..1ab7f362 100644 --- a/.github/workflows/charmtone.yml +++ b/.github/workflows/charmtone.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/charmtone - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/charmtone - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 babc781a..e05f7e8d 100644 --- a/.github/workflows/colors.yml +++ b/.github/workflows/colors.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: colors - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./colors - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 9022284f..dc5550c3 100644 --- a/.github/workflows/conpty.yml +++ b/.github/workflows/conpty.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: conpty - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./conpty - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 48963eec..3f41dce9 100644 --- a/.github/workflows/editor.yml +++ b/.github/workflows/editor.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: editor - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./editor - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 d929fdc1..1359312d 100644 --- a/.github/workflows/errors.yml +++ b/.github/workflows/errors.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: errors - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./errors - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 f7eafd57..678fc940 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: examples - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./examples - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 5b913169..6b8bf4aa 100644 --- a/.github/workflows/gitignore.yml +++ b/.github/workflows/gitignore.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: gitignore - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./gitignore - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 f201077e..1c3a2a22 100644 --- a/.github/workflows/golden.yml +++ b/.github/workflows/golden.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/golden - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/golden - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 0ce06009..18aae556 100644 --- a/.github/workflows/higherorder.yml +++ b/.github/workflows/higherorder.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/higherorder - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/higherorder - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 f2e0284f..14969aa3 100644 --- a/.github/workflows/input.yml +++ b/.github/workflows/input.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: input - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./input - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 fa01fe56..82705b3b 100644 --- a/.github/workflows/json.yml +++ b/.github/workflows/json.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: json - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./json - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 56f6ffdb..026af37f 100644 --- a/.github/workflows/maps.yml +++ b/.github/workflows/maps.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/maps - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/maps - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 404b8f84..b2ec9ce4 100644 --- a/.github/workflows/mosaic.yml +++ b/.github/workflows/mosaic.yml @@ -20,14 +20,21 @@ jobs: run: working-directory: ./mosaic steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./mosaic/go.mod 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] @@ -53,33 +60,4 @@ jobs: with: directory: mosaic - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./mosaic - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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..548c6a20 100644 --- a/.github/workflows/open.yml +++ b/.github/workflows/open.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/open - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/open - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 734178b5..e2514da2 100644 --- a/.github/workflows/ordered.yml +++ b/.github/workflows/ordered.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/ordered - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/ordered - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 d8ae2df5..35d3a964 100644 --- a/.github/workflows/pony.yml +++ b/.github/workflows/pony.yml @@ -21,13 +21,20 @@ jobs: working-directory: ./pony steps: - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: ./pony/go.mod 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] @@ -52,36 +59,5 @@ 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: - working-directory: ./pony - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v5 - - - name: Coverage - 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..a75d358d 100644 --- a/.github/workflows/powernap.yml +++ b/.github/workflows/powernap.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: powernap - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./powernap - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 88bb8b1a..ce2028bc 100644 --- a/.github/workflows/slice.yml +++ b/.github/workflows/slice.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/slice - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/slice - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 09dcd29e..b794b411 100644 --- a/.github/workflows/sshkey.yml +++ b/.github/workflows/sshkey.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: sshkey - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./sshkey - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 98bffcb9..57caff71 100644 --- a/.github/workflows/strings.yml +++ b/.github/workflows/strings.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/strings - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/strings - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 fd71af32..f1b061e6 100644 --- a/.github/workflows/teatest-v2.yml +++ b/.github/workflows/teatest-v2.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/teatest/v2 - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/teatest/v2 - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 2825b815..5b15e7a3 100644 --- a/.github/workflows/teatest.yml +++ b/.github/workflows/teatest.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/teatest - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/teatest - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 b7d7396b..0457586a 100644 --- a/.github/workflows/term.yml +++ b/.github/workflows/term.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: term - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./term - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 3ee67c18..be3d172d 100644 --- a/.github/workflows/termios.yml +++ b/.github/workflows/termios.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: termios - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./termios - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 a01a9270..6aaabfe9 100644 --- a/.github/workflows/toner.yml +++ b/.github/workflows/toner.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: exp/toner - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./exp/toner - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 1df66dee..2852903a 100644 --- a/.github/workflows/vcr.yml +++ b/.github/workflows/vcr.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: vcr - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./vcr - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 d60a9fd0..857433b4 100644 --- a/.github/workflows/vt.yml +++ b/.github/workflows/vt.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: vt - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./vt - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 64f1b7c6..f5b034d2 100644 --- a/.github/workflows/wcwidth.yml +++ b/.github/workflows/wcwidth.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: wcwidth - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./wcwidth - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 049c94e7..3a50bf91 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: windows - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./windows - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 a0600ad9..f4a4c941 100644 --- a/.github/workflows/xpty.yml +++ b/.github/workflows/xpty.yml @@ -20,14 +20,21 @@ 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 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] @@ -53,33 +60,4 @@ jobs: with: directory: xpty - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: ./xpty - runs-on: ${{ matrix.os }} - env: - GO111MODULE: "on" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v6 - - - name: Coverage - 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 49ff410c..e7fb8246 100755 --- a/scripts/builds +++ b/scripts/builds @@ -35,13 +35,20 @@ jobs: working-directory: $(dirname "$mod") steps: - uses: actions/checkout@v5 + with: + lfs: true - uses: actions/setup-go@v6 with: go-version-file: $mod 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] @@ -67,34 +74,5 @@ jobs: with: directory: $(dirname "$mod" | cut -f2- -d/) - coverage: - strategy: - matrix: - go-version: [^1] - os: [ubuntu-latest, windows-latest, macos-latest] - defaults: - run: - working-directory: $(dirname "$mod") - runs-on: \${{ matrix.os }} - env: - GO111MODULE: \"on\" - steps: - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: \${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v5 - - - name: Coverage - 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