Skip to content

Commit

Permalink
Merge pull request #1912 from urfave/ci/go-stable-oldstable
Browse files Browse the repository at this point in the history
Target `stable` and `oldstable` Go version in CI
  • Loading branch information
Juneezee authored May 26, 2024
2 parents 817dcbc + 4654d7c commit de45d2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: stable

- name: Clone repository
uses: actions/checkout@v4
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: stable

- name: Clone repository
uses: actions/checkout@v4
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: stable

- name: Clone repository
uses: actions/checkout@v4
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,41 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.19.x, 1.20.x]
go: [stable, oldstable]

name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Set PATH
run: echo "${GITHUB_WORKSPACE}/.local/bin" >>"${GITHUB_PATH}"
- uses: actions/checkout@v4

- if: matrix.go == '1.20.x' && matrix.os == 'ubuntu-latest'
- if: matrix.go == 'stable' && matrix.os == 'ubuntu-latest'
run: make ensure-goimports

- if: matrix.go == '1.20.x' && matrix.os == 'ubuntu-latest'
- if: matrix.go == 'stable' && matrix.os == 'ubuntu-latest'
run: make lint

- run: make vet
- run: make test
- run: make check-binary-size

- if: matrix.go == '1.20.x' && matrix.os == 'ubuntu-latest'
- if: matrix.go == 'stable' && matrix.os == 'ubuntu-latest'
run: make generate

- run: make diffcheck

- if: matrix.go == '1.20.x' && matrix.os == 'ubuntu-latest'
- if: matrix.go == 'stable' && matrix.os == 'ubuntu-latest'
run: make v3diff

- if: success() && matrix.go == '1.20.x' && matrix.os == 'ubuntu-latest'
- if: success() && matrix.go == 'stable' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -62,22 +63,21 @@ jobs:
name: test-docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: stable

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: latest

- name: Set PATH
run: echo "${GITHUB_WORKSPACE}/.local/bin" >>"${GITHUB_PATH}"

- name: Clone repository
uses: actions/checkout@v4

- run: make ensure-gfmrun

- run: make gfmrun
Expand Down

0 comments on commit de45d2d

Please sign in to comment.