Reinstate the root package.json so we can still run the setup from th… #9
This file contains hidden or 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: Run the tests whenever there's a new checkin to develop | |
| on: | |
| push: | |
| branches: [ develop ] | |
| # Allow it to be run manually from the Github Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| # We should add a job to run the tests first... | |
| test: | |
| name: Run the API tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Build the Docker image | |
| run: docker build --build-arg=NODE_ENVIRONMENT=testing --build-arg=TEST_FOLDER=test -t test-api ./api | |
| - name: Run the tests | |
| run: docker run --rm=true -t test-api /home/node/app/node_modules/mocha/bin/mocha --recursive --exit --timeout 3500 |