Skip to content

Remove data nil (#226) #261

Remove data nil (#226)

Remove data nil (#226) #261

Workflow file for this run

name: Test
on:
push:
branches:
# master runs its own tests as part of the release
- "*"
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container: clojure:lein-bullseye
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:
- 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-
- name: install git
run: apt-get update && apt-get -y install git
# 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