-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (49 loc) · 1.31 KB
/
Copy pathci.yml
File metadata and controls
54 lines (49 loc) · 1.31 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
name: CI
on: pull_request
jobs:
hadolint:
name: runner / hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-hadolint@v1
with:
fail_on_error: true
reporter: github-pr-review
dotenv-linter:
name: runner / dotenv-linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dotenv-linter/action-dotenv-linter@v2
with:
reporter: github-pr-review
tests:
name: runner / tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Unit Tests
run: "go test \
-v \
-covermode atomic \
-coverprofile=coverage.txt \
./internal/..."
- name: Upload coverage report
run: bash <(curl -s https://codecov.io/bash)
integration-tests:
name: runner / integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v3
- name: Integration tests
run: "docker compose \
-f docker-compose.yml -f docker-compose-integration.yml \
up \
--build \
--abort-on-container-exit \
--exit-code-from integration"