forked from yetibot/yetibot
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.26 KB
/
test.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
name: Test
on:
push:
branches:
- "*"
pull_request:
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: yetibot
POSTGRES_PASSWORD: yetibot
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: DeLaGuardo/setup-clojure@master
with:
lein: 2.9.4
- name: checkout
uses: actions/checkout@v2
- name: maven cache
uses: actions/cache@v2
with:
path: /root/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
restore-keys: |
${{ runner.os }}-maven-
# runs the tests and generates code coverage metrics
- name: test
env:
YETIBOT_DB_URL: postgresql://yetibot:yetibot@postgres:5432/yetibot
CLOVERAGE_VERSION: 1.1.2
run: lein with-profile +test cloverage --codecov --runner midje
- uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true # optional (default = false)
verbose: false # optional (default = false)