Update dependency antd to v5.22.6 #801
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 and E2E Tests | |
on: [push] | |
jobs: | |
Jest: | |
name: Jest Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
# - uses: actions/setup-node@v3 | |
# with: | |
# node-version: ${{ env.NODE_VERSION }} | |
# - name: Set up Node.js | |
# uses: actions/setup-node@v2 | |
# with: | |
# node-version: '14' # specify the node version | |
# - name: Cache dependencies | |
# uses: actions/cache@v2 | |
# with: | |
# path: ~/.cache/yarn | |
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
# restore-keys: | | |
# ${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile # Use frozen-lockfile to ensure reproducibility. | |
- name: Run Tests | |
run: yarn test | |
cypress-run: | |
name: Cypress E2E Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build | |
env: | |
CI: false | |
run: yarn build | |
- name: Cypress run | |
uses: cypress-io/github-action@v5 | |
env: | |
REACT_APP_DESCOPE_PROJECT_ID: ${{ secrets.REACT_APP_DESCOPE_PROJECT_ID }} | |
REACT_APP_DESCOPE_MANAGEMENT_KEY: ${{ secrets.REACT_APP_DESCOPE_MANAGEMENT_KEY }} | |
# pass GitHub token to detect new build vs re-run build | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
start: yarn start | |
wait-on: "http://localhost:3000" | |
wait-on-timeout: 120 | |
browser: chrome | |
# record: true |