-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (45 loc) · 1.23 KB
/
ci.yml
File metadata and controls
59 lines (45 loc) · 1.23 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Code generated by ADL CLI v0.22.1. DO NOT EDIT.
# This file was automatically generated from an ADL (Agent Definition Language) specification.
# Manual changes to this file may be overwritten during regeneration.
---
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5.0.0
- name: Set up Go
uses: actions/setup-go@v6.0.0
with:
go-version: 1.25
cache: true
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v2.4.0
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
- name: Install ADL CLI
run: |
curl -fsSL https://raw.githubusercontent.com/inference-gateway/adl-cli/main/install.sh | bash
adl --version
- name: Validate ADL
run: task validate
- name: Download dependencies
run: go mod download
- name: Format check
run: task fmt
- name: Lint
run: task lint
- name: Run tests
run: task test
- name: Build
run: task build