Skip to content

Consolidate PR's

Consolidate PR's #368

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
CQube-Impl:
runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [16, 18]
steps:
- uses: actions/checkout@v2
- name: Copy .env.example to .env
run: cp .env.example .env
- name: Run DBs
# working-directory: .
run: docker-compose up -d
- name: Use Node.js 16
# working-directory: impl/c-qube
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
cache-dependency-path: impl/c-qube/yarn.lock
- name: Setup env
working-directory: impl/c-qube
run: |
touch .env
echo "DATABASE_URL"="postgres://timescaledb:postgrespassword@localhost:5432/postgres?sslmode=disable" >> .env
- name: Install dependencies
working-directory: impl/c-qube
run: yarn install
- name: Prisma Setup
working-directory: impl/c-qube
run: |
npx prisma migrate dev
- name: build
working-directory: impl/c-qube
run: |
yarn install
yarn build
- name: Tests
working-directory: impl/c-qube
run: |
yarn test
yarn test:cov
- name: Stop DBs
working-directory: .
run: |
docker-compose down
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}