-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (59 loc) · 1.72 KB
/
app.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
58
59
60
61
62
name: AppCI
on:
push:
branches:
- main
pull_request:
branches:
- "*" # matches every branch that doesn't contain a '/'
- "*/*" # matches every branch containing a single '/'
- "**" # matches every branch
jobs:
test_library_app:
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "19"
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
lein: 2.9.1 # Leiningen
- name: Installing fractl-io dependancies
run: |
git clone https://${{ secrets.REPO_READ_WRITE_TOKEN }}@github.com/fractl-io/fractl-config-secrets-reader
cd fractl-config-secrets-reader
lein install
- name: Install dependencies
run: lein deps
- name: Cache clojure depdendencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('project.clj') }}
restore-keys: cljdeps-
- name: Install Node JS
uses: actions/setup-node@v3
with:
node-version: 18
- name: Newman cli install
run: npm install -g newman
- name: Run lein library app & Newman API test
run: |
lein run test/sample/library/model.al &
sleep 180
newman run test/sample/library/library-ci.postman_collection.json
kill -9 `lsof -i:8000 -t`
env:
API_HOST: 127.0.0.1:8000
CI: true