adding all contributors #12
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: 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 |