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 ./... 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