Skip to content

Merge pull request #509 from bookingcom/deniszh-patch-3 #842

Merge pull request #509 from bookingcom/deniszh-patch-3

Merge pull request #509 from bookingcom/deniszh-patch-3 #842

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
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@v4
with:
go-version: ${{ matrix.go-version }}
- name: Set up Go tip
if: matrix.go == '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: install cairo
run: sudo apt-get install libcairo2-dev -y
- name: checkout code
uses: actions/checkout@v3
- name: test
run: make test
- name: golangci-lint
if: matrix.go-version == '1.21.x'
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
- name: integration test
if: matrix.go-version == '1.21.x'
run: tests/system_test.sh