update question and date picker #680
Workflow file for this run
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: Build VMRS App | |
on: | |
pull_request: | |
branches: [development] | |
paths-ignore: | |
- "*.md" | |
jobs: | |
test-backend-unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Make envfile | |
uses: SpicyPizza/create-envfile@v2 | |
with: | |
envkey_BACKEND_PORT: ${{ secrets.BACKEND_PORT }} | |
envkey_REACT_APP_PROXY: ${{ secrets.REACT_APP_PROXY }} | |
file_name: backend/.env | |
- name: Build the backend container | |
run: docker compose build backend | |
- name: Run backend unit test suite | |
run: docker compose run --rm backend yarn run test --testPathIgnorePatterns=routers | |
test-backend-integration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Make envfile | |
uses: SpicyPizza/create-envfile@v2 | |
with: | |
envkey_CUSTOM_REQUEST_HEADER: ${{ secrets.CUSTOM_REQUEST_HEADER }} | |
envkey_SLACK_OAUTH_TOKEN: ${{ secrets.SLACK_OAUTH_TOKEN }} | |
envkey_SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
envkey_SLACK_TEAM_ID: ${{ secrets.SLACK_TEAM_ID }} | |
envkey_SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }} | |
envkey_SLACK_CLIENT_ID: ${{ secrets.SLACK_CLIENT_ID }} | |
envkey_SLACK_CLIENT_SECRET: ${{ secrets.SLACK_CLIENT_SECRET }} | |
envkey_SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }} | |
envkey_BACKEND_PORT: ${{ secrets.BACKEND_PORT }} | |
envkey_REACT_APP_PROXY: ${{ secrets.REACT_APP_PROXY }} | |
envkey_GMAIL_CLIENT_ID: ${{ secrets.GMAIL_CLIENT_ID }} | |
envkey_GMAIL_SECRET_ID: ${{ secrets.GMAIL_SECRET_ID }} | |
envkey_GMAIL_REFRESH_TOKEN: ${{ secrets.GMAIL_REFRESH_TOKEN }} | |
envkey_GMAIL_EMAIL: ${{ secrets.GMAIL_EMAIL }} | |
envkey_MAILHOG_PORT: ${{ secrets.MAILHOG_PORT }} | |
envkey_MAILHOG_USER: ${{ secrets.MAILHOG_USER }} | |
envkey_MAILHOG_PASSWORD: ${{ secrets.MAILHOG_PASSWORD }} | |
file_name: backend/.env | |
- name: Build the backend container | |
run: docker compose build backend | |
- name: Run backend integration test suite | |
run: docker compose run --rm backend yarn run test backend/routers/ | |
test-client-unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the client container | |
run: docker compose build client | |
- name: Run client unit test suite | |
run: docker compose run --rm client yarn run test | |
# test-mvp-unit: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Build the client mvp container | |
# run: docker compose build client-mvp-04 | |
# - name: Run frontend unit test suite | |
# run: docker compose run --rm client-mvp-04 yarn run test |