fix: #1123 - Fixing issue with discord observors #262
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |