-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (41 loc) · 1.2 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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@v5
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@v4
- name: test
run: make test
- name: golangci-lint
if: matrix.go-version == '1.23.x'
uses: golangci/golangci-lint-action@v6
with:
version: v1.60.1
- name: integration test
if: matrix.go-version == '1.23.x'
run: tests/system_test.sh