Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 14 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ on:

jobs:
build:
name: Build
name: Build (go:${{ matrix.go-version.name }})
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- name: latest
version: 1.24.x
- name: previous
version: 1.23.x
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
go-version: ${{ matrix.go-version.version }}
- name: Git checkout
uses: actions/checkout@v4
- name: Build
Expand All @@ -25,21 +32,12 @@ jobs:
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage
uses: codecov/codecov-action@v4
if: matrix.go-version.name == 'latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
build_1_18:
name: Build with Go 1.18
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
steps:
- name: Install Go
uses: actions/setup-go@v5
- name: Lint
uses: golangci/golangci-lint-action@v7
if: matrix.go-version.name == 'latest'
with:
go-version: '1.18'
- name: Git checkout
uses: actions/checkout@v4
- name: Build and test
run: |
go get ./...
go test -race ./...
version: v2.0
23 changes: 0 additions & 23 deletions .github/workflows/golangci-lint.yml

This file was deleted.

9 changes: 3 additions & 6 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
-
name: Release
- name: Release
uses: goreleaser/goreleaser-action@v6
with:
version: latest
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/nicksnyder/go-i18n/v2

go 1.18
go 1.23

toolchain go1.24.2

require (
github.com/BurntSushi/toml v1.5.0
Expand Down
Loading