From ea7dbd0316a1a4b42887788e0a2015a84a5b3299 Mon Sep 17 00:00:00 2001 From: sdcoffey Date: Fri, 29 May 2026 08:58:07 -0700 Subject: [PATCH 1/2] Update Go version and CI matrix --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ .travis.yml | 13 ------------- go.mod | 2 +- 3 files changed, 40 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..084821a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + pull_request: + +permissions: + contents: read + +jobs: + build: + name: Go ${{ matrix.go-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + go-version: + - "1.21" + - "1.22" + - "1.23" + - "1.24" + - "1.25" + - "1.26" + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version: ${{ matrix.go-version }} + cache: true + + - name: Build + run: go build ./... + + - name: Test + run: go test -v ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d65631f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: go - -go: - - 1.2 - - 1.3 - - 1.4 - - tip - -install: - - go build . - -script: -- go test -v diff --git a/go.mod b/go.mod index 45a4dc2..a20d6dc 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/sdcoffey/big -go 1.13 +go 1.21 require ( github.com/davecgh/go-spew v1.1.1 // indirect From da8124a270b381fa3236cee639faf74890370b73 Mon Sep 17 00:00:00 2001 From: sdcoffey Date: Fri, 29 May 2026 09:00:43 -0700 Subject: [PATCH 2/2] Fix Tests workflow Go matrix --- .github/workflows/ci.yml | 39 -------------------------------- .github/workflows/test.yaml | 45 +++++++++++++++++++++++++++---------- 2 files changed, 33 insertions(+), 51 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 084821a..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: CI - -on: - push: - pull_request: - -permissions: - contents: read - -jobs: - build: - name: Go ${{ matrix.go-version }} - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - go-version: - - "1.21" - - "1.22" - - "1.23" - - "1.24" - - "1.25" - - "1.26" - - steps: - - name: Checkout - uses: actions/checkout@v6 - - - name: Set up Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go-version }} - cache: true - - - name: Build - run: go build ./... - - - name: Test - run: go test -v ./... diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5c8dc24..80ef17d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,18 +1,39 @@ name: Tests -on: [push, pull_request] + +on: + push: + pull_request: + +permissions: + contents: read + jobs: test: + name: Go ${{ matrix.go-version }} runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + go-version: + - "1.21" + - "1.22" + - "1.23" + - "1.24" + - "1.25" + - "1.26" + steps: - - name: Install Go - uses: actions/setup-go@v2 + - name: Checkout + uses: actions/checkout@v6 + + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: 1.16 - - name: Checkout Code - uses: actions/checkout@v2 - - name: Bootstrap environment - run: make bootstrap - - name: Lint - run: make lint - - name: Run Tests - run: make test + go-version: ${{ matrix.go-version }} + cache: true + + - name: Build + run: go build ./... + + - name: Test + run: go test -v ./...