use stable instead of 1.20

This commit is contained in:
Pavel 2023-01-09 15:57:53 +03:00
parent 0e7621f270
commit 2b72dc948f

View File

@ -19,10 +19,10 @@ jobs:
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Go 1.20 - name: Set up stable Go version
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: '1.20' go-version: 'stable'
- name: Get dependencies - name: Get dependencies
run: go mod tidy run: go mod tidy
- name: Lint code with golangci-lint - name: Lint code with golangci-lint
@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go-version: ['1.18', '1.19', '1.20'] go-version: ['1.18', '1.19', 'stable']
steps: steps:
- name: Set up Go ${{ matrix.go-version }} - name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3 uses: actions/setup-go@v3