Ingested document support #2614
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: 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 |