Skip to content

actions v1

actions v1 #5

Workflow file for this run

name: unit tests
on: [push]
jobs:
test:
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 crudx
- name: Check coverage if files exists
run: (ls ./coverage/packages/crudx/clove.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/crudx/coverage.xml