-
Notifications
You must be signed in to change notification settings - Fork 60
37 lines (32 loc) · 842 Bytes
/
Copy pathci.yaml
File metadata and controls
37 lines (32 loc) · 842 Bytes
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
name: CI
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on: [push, pull_request]
env:
GOTOOLCHAIN: local
jobs:
test:
name: Unit test
timeout-minutes: 10
strategy:
matrix:
go-version: [1.13.x, oldstable, stable]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v6
- name: Validate headers
if: startsWith(matrix.go-version, '1.13') == false
run: |
go install github.com/containerd/ltag@latest \
&& ./scripts/validate/fileheader
- name: Test
run: go test -race -v ./...