forked from slok/go-http-metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 782 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
name: CI
on: [push, pull_request]
jobs:
check:
name: Check
runs-on: ubuntu-latest
# Execute the checks inside the container instead the VM.
container: golangci/golangci-lint:v1.31.0-alpine
steps:
- uses: actions/[email protected]
- run: golangci-lint run -E goimports
unit-test:
name: Unit test
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: 1.17
- run: make test
integration-test:
name: Integration test
runs-on: ubuntu-latest
needs: [check, unit-test]
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: 1.17
- run: make integration-test