Merge pull request #102 from WildCodeSchool/89-upload-files-in-dashboard #143
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: jest-and-docker-ci | |
on: push | |
jobs: | |
test-front: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Goto frontend and run tests | |
run: cd frontend && npm i && npm test | |
test-back: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Copy production env file | |
run: echo "${{ secrets.PRODUCTION_ENV_FILE }}" > .env | |
- name: Goto backend and run tests | |
run: cd backend && npm i && npm test | |
test-e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Copy production env file | |
run: echo "${{ secrets.PRODUCTION_ENV_FILE }}" > .env | |
- name: Goto e2e and run tests | |
run: docker compose -f docker-compose.e2e.yml up --build --exit-code-from e2e |