chore: regenerate client #1679
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: CI | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
workflow_dispatch: | |
env: | |
REACT_APP_TEST_STUDENT1_PASSWORD: ${{ secrets.STUDENT1_PASSWORD }} | |
REACT_APP_TEST_TEACHER1_PASSWORD: ${{ secrets.TEACHER1_PASSWORD }} | |
REACT_APP_TEST_MANAGER1_PASSWORD: ${{ secrets.MANAGER1_PASSWORD }} | |
REACT_APP_AWS_REGION: eu-west-3 | |
REACT_APP_USERPOOL_ID: ${{ vars.PREPROD_USERPOOL_ID }} | |
REACT_APP_WEBCLIENT_ID: ${{ vars.PREPROD_WEBCLIENT_ID }} | |
REACT_APP_OAUTH_DOMAIN: ${{ vars.PREPROD_OAUTH_DOMAIN }} | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.19.0 | |
## Connect to Numer Private Codeartifact Repository ## | |
- name: Configure prod AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4.0.1 | |
with: | |
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.REACT_APP_AWS_REGION }} | |
- run: sh ./initNpmrc.sh hei-store npm-hei-school 088312068315 | |
## Connect to Numer Private Codeartifact Repository ## | |
- name: Configure preprod AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4.0.1 | |
with: | |
aws-access-key-id: ${{ secrets.PREPROD_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.PREPROD_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.REACT_APP_AWS_REGION }} | |
unset-current-credentials: true | |
- run: sh ./initNpmrc.sh hei-store npm-hei-lab 057045785189 | |
## Install npm dependencies ## | |
- name: Install npm dependencies | |
run: npm ci | |
## Run prettier to check code style ## | |
- name: Check style | |
run: npm run format:check | |
test-e2e: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.19.0 | |
## Connect to Numer Private Codeartifact Repository ## | |
- name: Configure prod AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4.0.1 | |
with: | |
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.REACT_APP_AWS_REGION }} | |
- run: sh ./initNpmrc.sh hei-store npm-hei-school 088312068315 | |
## Connect to Numer Private Codeartifact Repository ## | |
- name: Configure preprod AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4.0.1 | |
with: | |
aws-access-key-id: ${{ secrets.PREPROD_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.PREPROD_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.REACT_APP_AWS_REGION }} | |
unset-current-credentials: true | |
- run: sh ./initNpmrc.sh hei-store npm-hei-lab 057045785189 | |
## Run Cypress e2e tests ## | |
- name: Run e2e tests | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm run dev | |
build: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.19.0 | |
## Connect to Numer Private Codeartifact Repository ## | |
- name: Configure prod AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4.0.1 | |
with: | |
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.REACT_APP_AWS_REGION }} | |
- run: sh ./initNpmrc.sh hei-store npm-hei-school 088312068315 | |
## Connect to Numer Private Codeartifact Repository ## | |
- name: Configure preprod AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4.0.1 | |
with: | |
aws-access-key-id: ${{ secrets.PREPROD_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.PREPROD_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.REACT_APP_AWS_REGION }} | |
unset-current-credentials: true | |
- run: sh ./initNpmrc.sh hei-store npm-hei-lab 057045785189 | |
## Install npm dependencies ## | |
- name: Install npm dependencies | |
run: npm ci | |
## Build the application with vite and typescript ## | |
- name: Build app | |
run: npm run build |