Skip to content

adding all contributors #12

adding all contributors

adding all contributors #12

Workflow file for this run

name: unit tests
on: [push]
jobs:
test:
strategy:
matrix:
PROJECT_NAME: [crudx]
name: Crudx Jest Tests
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: Build the Docker image
run: docker compose up -d
- name: Sleep
uses: jakejarvis/wait-action@master
with:
time: '60s'
- name: Check running containers
run: docker ps
- name: Run unit tests
run: ./test.sh ${{ matrix.PROJECT_NAME }}
- name: Check coverage if files exists
run: (ls ./coverage/packages/${{ matrix.PROJECT_NAME }}/clover.xml && echo yes) || echo no
- name: Upload coverage reports to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./coverage/packages/${{ matrix.PROJECT_NAME }}/clover.xml