From e3d94553d49544999624add728d1611d38fe51c1 Mon Sep 17 00:00:00 2001 From: Dylan Ravel Date: Thu, 8 Oct 2026 13:34:12 -0700 Subject: [PATCH] Bump go version in CI/CD --- .github/workflows/codeql.yml | 64 +++++++++++----------- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 66 +++++++++++------------ CONTRIBUTING.md | 2 +- docs/installation/linux_installation.md | 8 +-- docs/installation/macos_installation.md | 2 +- docs/installation/windows_installation.md | 2 +- go.mod | 2 +- 8 files changed, 74 insertions(+), 74 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a7dd508..649f1c5 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,39 +1,39 @@ name: CodeQL on: - push: - branches: [main] - pull_request: - branches: [main] - schedule: - - cron: "0 0 * * 1" + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "0 0 * * 1" permissions: - contents: read - security-events: write + contents: read + security-events: write jobs: - analyze: - name: Analyze (go) - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v7 - - - name: Set up Go - uses: actions/setup-go@v7 - with: - go-version: "1.25" - - - name: Initialize CodeQL - uses: github/codeql-action/init@v4 - with: - languages: go - - - name: Build - run: go build -v ./... - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v4 - with: - category: /language:go + analyze: + name: Analyze (go) + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v7 + + - name: Set up Go + uses: actions/setup-go@v7 + with: + go-version: "1.27" + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: go + + - name: Build + run: go build -v ./... + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: /language:go diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c233b3c..4e85b45 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v7 with: - go-version: "1.25" + go-version: "1.27" - name: Generate release notes env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 80c60fe..338286a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,40 +1,40 @@ name: Test on: - push: - branches: [main] - pull_request: - branches: [main] + push: + branches: [main] + pull_request: + branches: [main] permissions: - contents: read + contents: read jobs: - test: - strategy: - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v7 - - - name: Set up Go - uses: actions/setup-go@v7 - with: - go-version: "1.25" - - - name: Build - run: go build -v ./... - - - name: Run unit tests - run: go test -v ./... - - - name: Run tests with race detection - run: go test -race -v ./... - - - name: Test basic commands - run: | - go build -o tmpo${{ matrix.os == 'windows-latest' && '.exe' || '' }} . - ./tmpo${{ matrix.os == 'windows-latest' && '.exe' || '' }} --version - ./tmpo${{ matrix.os == 'windows-latest' && '.exe' || '' }} --help + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v7 + + - name: Set up Go + uses: actions/setup-go@v7 + with: + go-version: "1.27" + + - name: Build + run: go build -v ./... + + - name: Run unit tests + run: go test -v ./... + + - name: Run tests with race detection + run: go test -race -v ./... + + - name: Test basic commands + run: | + go build -o tmpo${{ matrix.os == 'windows-latest' && '.exe' || '' }} . + ./tmpo${{ matrix.os == 'windows-latest' && '.exe' || '' }} --version + ./tmpo${{ matrix.os == 'windows-latest' && '.exe' || '' }} --help diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8916206..fb9a5a5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ Thank you for your interest in contributing to tmpo! This document provides guid ### Prerequisites -- Go 1.25 or higher +- Go 1.27 or higher - Git ### Setting Up Your Development Environment diff --git a/docs/installation/linux_installation.md b/docs/installation/linux_installation.md index 19b00eb..31fbec2 100644 --- a/docs/installation/linux_installation.md +++ b/docs/installation/linux_installation.md @@ -5,7 +5,7 @@ This guide will walk you through installing tmpo on Linux. ## Prerequisites - Linux kernel 3.10 or later (most modern distributions) -- For building from source: Go 1.25 or later +- For building from source: Go 1.27 or later ## Method 1: Download Pre-built Binary (Recommended) @@ -96,9 +96,9 @@ sudo pacman -S go **Or download from [golang.org/dl](https://golang.org/dl/):** ```bash -# Download and install Go 1.25 or later -wget https://go.dev/dl/go1.25.0.linux-amd64.tar.gz -sudo tar -C /usr/local -xzf go1.25.0.linux-amd64.tar.gz +# Download and install Go 1.27 or later +wget https://go.dev/dl/go1.27.1.linux-amd64.tar.gz +sudo tar -C /usr/local -xzf go1.27.1.linux-amd64.tar.gz echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc source ~/.bashrc diff --git a/docs/installation/macos_installation.md b/docs/installation/macos_installation.md index 77355d7..c36a896 100644 --- a/docs/installation/macos_installation.md +++ b/docs/installation/macos_installation.md @@ -5,7 +5,7 @@ This guide will walk you through installing tmpo on macOS. ## Prerequisites - macOS 11 (Big Sur) or later -- For building from source: Go 1.25 or later +- For building from source: Go 1.27 or later ## Method 1: Homebrew (Recommended) diff --git a/docs/installation/windows_installation.md b/docs/installation/windows_installation.md index 2c9cb38..5998dea 100644 --- a/docs/installation/windows_installation.md +++ b/docs/installation/windows_installation.md @@ -5,7 +5,7 @@ This guide will walk you through installing tmpo on Windows. ## Prerequisites - Windows 10 or later -- For building from source: Go 1.25 or later +- For building from source: Go 1.27 or later ## Method 1: Download Pre-built Binary (Recommended) diff --git a/go.mod b/go.mod index 5191a89..1415cf3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/DylanDevelops/tmpo -go 1.25.5 +go 1.27.1 require ( github.com/manifoldco/promptui v0.9.0