-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (55 loc) · 1.31 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
test:
name: Run unit tests
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- uses: earthly/actions-setup@v1
with:
version: 'v0.8.0'
- name: Run unit tests
run: ssh-agent earthly +test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
files: output/coverage.out
e2e:
name: Run e2e tests
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- uses: earthly/actions-setup@v1
with:
version: 'v0.8.0'
- name: Run e2e tests
run: ssh-agent earthly -P +e2e
- name: Upload logs
uses: actions/upload-artifact@v4
with:
name: output
path: output
lint:
name: golangci-lint
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- uses: earthly/actions-setup@v1
with:
version: 'v0.8.0'
- name: Run linters
run: ssh-agent earthly +lint
typos:
name: Check typos
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
with:
config: typos.toml