Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 26 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
name: Continuous Integration
name: CI

on:
push:
branches:
- main
- master
pull_request:
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, 1.21.x, 1.22.x]
go-version: [1.13.x, oldstable, stable]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- 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 -v ./...
- 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 ./...
Loading