Added python microservice #5
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: Plato | |
on: | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
jobs: | |
plato1: | |
permissions: | |
checks: write | |
contents: read | |
name: Plato | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
node: [16] | |
runs-on: ${{ matrix.os }} | |
env: | |
TEST_ENV: ${{ matrix.test_env || 'production' }} | |
services: | |
mongo: | |
image: "mongo:3.7" | |
ports: | |
# Maps port 27017 on service container to the host | |
- 27017:27017 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cp install/package.json package.json | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: NPM Install | |
uses: bahmutov/npm-install@v1 | |
with: | |
useLockFile: false | |
- name: Setup on MongoDB | |
env: | |
SETUP: >- | |
{ | |
"url": "http://127.0.0.1:4567", | |
"secret": "abcdef", | |
"admin:username": "admin", | |
"admin:email": "[email protected]", | |
"admin:password": "hAN3Eg8W", | |
"admin:password:confirm": "hAN3Eg8W", | |
"database": "mongo", | |
"mongo:host": "127.0.0.1", | |
"mongo:port": 27017, | |
"mongo:username": "", | |
"mongo:password": "", | |
"mongo:database": "nodebb" | |
} | |
CI: >- | |
{ | |
"host": "127.0.0.1", | |
"port": 27017, | |
"database": "ci_test" | |
} | |
run: | | |
node app --setup="${SETUP}" --ci="${CI}" | |
- name: Install Plato | |
run: npm install -g plato | |
- name: Run Plato Tool | |
run: plato -r -d report public/src/client/topic/postTools.js |