-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 1001 Bytes
/
ci.yaml
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
name: CI Workflow
on: [pull_request, workflow_dispatch]
jobs:
main:
name: CI
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go-version: ["1.18", "1.19", "1.20", "1.21", "1.22", "1.23"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install project tools and dependencies
if: ${{ matrix.go-version == '1.23' }}
run: make project-tools
- name: Lint
if: ${{ matrix.go-version == '1.23' }}
run: |
make lint
scripts/check-sync-tidy.sh
- name: Lint scripts
if: ${{ matrix.go-version == '1.23' }}
run: |
make lint-scripts
- name: Test
run: make test
- name: Test scripts
if: ${{ matrix.go-version >= '1.22' }}
run: make test-scripts