actions v1 #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: 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 |