Merge pull request #284 from bookingcom/dzhdanov/upg #1234
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: CI | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ 1.21.x, 1.22.x, 1.23.x, tip ] | |
steps: | |
- name: Set up Go stable | |
if: matrix.go-version != 'tip' | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Set up Go tip | |
if: matrix.go-version == 'tip' | |
run: | | |
curl -o go.tar.gz -L \ | |
https://github.com/AlekSi/golang-tip/releases/download/tip/master.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go.tar.gz | |
sudo ln -s /usr/local/go/bin/* /usr/local/bin/ | |
/usr/local/bin/go version | |
echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV | |
- name: checkout code | |
uses: actions/checkout@v4 | |
- name: golangci-lint | |
if: matrix.go-version == '1.23.x' | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.61.0 | |
- name: test | |
run: make test |