-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.62 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
# Continous Integration.
# Runs on PRs to Master
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build docker stack
run: |
docker network create traefik
docker-compose -f docker-compose.yml -f docker-compose.test.yml up run-tests
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run ktlint with reviewdog
# You may pin to the exact commit or the version.
# uses: ScaCap/action-ktlint@58b3c386f5160049b0a1d0f986c56e0d0717140a
uses: ScaCap/action-ktlint@1.3
with:
# GITHUB_TOKEN
github_token: ${{ secrets.GITHUB_TOKEN }}
# Report level for reviewdog [info,warning,error]
level: error# optional, default is error
# Reporter of reviewdog command [github-pr-check,github-pr-review].
reporter: github-pr-check # optional, default is github-pr-check
# Fails the current check if any error was found [true/false]
fail_on_error: false # optional, default is false
# Print files relative to the working directory
relative: true # optional, default is true
# Run KtLint with Android Kotlin Style Guide