Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2: GitHub Actions: upgrade Go, upgrade actions #1848

Merged
Merged
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
26 changes: 13 additions & 13 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ 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/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Set PATH
run: echo "${GITHUB_WORKSPACE}/.local/bin" >>"${GITHUB_PATH}"
- uses: actions/checkout@v3
- 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
Expand All @@ -40,12 +40,12 @@ jobs:
GFLAGS: -tags urfave_cli_no_docs
- run: make check-binary-size
- run: make yamlfmt
- 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 v2diff
- if: success() && matrix.go == '1.20.x' && matrix.os == 'ubuntu-latest'
- if: success() && matrix.go == 'stable' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -54,15 +54,15 @@ jobs:
name: test-docs
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
- uses: actions/setup-node@v3
go-version: stable
- uses: actions/setup-node@v4
with:
node-version: '16'
- name: Set PATH
run: echo "${GITHUB_WORKSPACE}/.local/bin" >>"${GITHUB_PATH}"
- uses: actions/checkout@v3
- run: make ensure-gfmrun
- run: make gfmrun
env:
Expand All @@ -76,7 +76,7 @@ jobs:
needs: [test-docs]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: make ensure-mkdocs
Expand Down