-
-
Notifications
You must be signed in to change notification settings - Fork 12
57 lines (50 loc) · 1.7 KB
/
push.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
49
50
51
52
53
54
55
56
57
on: [push, pull_request]
name: CI/CD
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12.2
env:
POSTGRES_USER: example
POSTGRES_PASSWORD: example
POSTGRES_DB: example
ports:
- 5432/tcp
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Racket
uses: Bogdanp/setup-racket@v1.6
with:
variant: CS
version: stable
- name: Install pkg and deps
run: raco pkg install --batch --auto koyo-lib/ koyo-doc/ koyo-test/ koyo/
- name: Run tests for koyo itself
run: raco test -j 4 koyo-test/
env:
KOYO_DATABASE_TESTS: x
KOYO_TEST_DB_HOST: 127.0.0.1
KOYO_TEST_DB_PORT: ${{ job.services.postgres.ports[5432] }}
KOYO_TEST_DB_NAME: example
KOYO_TEST_DB_USERNAME: example
KOYO_TEST_DB_PASSWORD: example
- name: Run tests for standard blueprint
run: ci/test-blueprint.sh standard
env:
STANDARD_EXAMPLE_TEST_DB_HOST: 127.0.0.1
STANDARD_EXAMPLE_TEST_DB_PORT: ${{ job.services.postgres.ports[5432] }}
STANDARD_EXAMPLE_TEST_DB_NAME: example
STANDARD_EXAMPLE_TEST_DB_USERNAME: example
STANDARD_EXAMPLE_TEST_DB_PASSWORD: example
- name: Deploy docs
run: ci/docs.sh
env:
KOYO_DOCS_DEPLOY_KEY_PASSPHRASE: ${{ secrets.KOYO_DOCS_DEPLOY_KEY_PASSPHRASE }}
KOYO_DOCS_SSH_HOST: ${{ secrets.KOYO_DOCS_SSH_HOST }}
KOYO_DOCS_SSH_PORT: ${{ secrets.KOYO_DOCS_SSH_PORT }}
if: >-
startsWith(github.ref, 'refs/heads/master')