Thanks to visit codestin.com
Credit goes to github.com

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