-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (40 loc) · 943 Bytes
/
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
42
43
44
45
name: CI
on: [pull_request]
env:
GO_VERSION: 1.18
jobs:
build:
name: Build and Setup
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
with:
go_version: ${{ env.GO_VERSION }}
lint:
name: Lint and more checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint and more checks
uses: ./.github/actions/lint
with:
go_version: ${{ env.GO_VERSION }}
test:
name: Run Tests
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
checks: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Tests
uses: ./.github/actions/tests
with:
go_version: ${{ env.GO_VERSION }}
min_coverage: 100