Bump the react group across 1 directory with 4 updates #6638
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: Integration test | |
on: [push, pull_request] | |
jobs: | |
integration: | |
name: Integration test | |
if: "!github.event.deleted" | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/browsers:node-20.6.1-chrome-116.0.5845.187-1-ff-117.0-edge-116.0.1938.76-1 | |
options: --user 1001 | |
env: | |
TZ: Europe/Copenhagen | |
strategy: | |
# When one test fails, DO NOT cancel the other containers, because this | |
# will kill Cypress processes leaving Cypress Cloud hanging. | |
# https://github.com/cypress-io/github-action/issues/48 | |
fail-fast: false | |
matrix: | |
# Run 3 copies of the current job in parallel | |
containers: [1, 2, 3] | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
registry-url: "https://npm.pkg.github.com" | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
install: false | |
start: yarn start:storybook:test | |
wait-on: "http://localhost:57021" | |
browser: chrome | |
group: "Integration tests" | |
parallel: true | |
record: true | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload screenshots | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots-${{ matrix.containers }} | |
path: cypress/screenshots | |
- name: Upload videos | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: cypress-videos-${{ matrix.containers }} | |
path: cypress/videos | |
- name: Generate code coverage report | |
run: yarn run nyc report --reporter=clover --reporter=text --report-dir=./coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ./coverage/ | |
flags: integration | |
fail_ci_if_error: false | |
unit: | |
name: Unit test | |
if: "!github.event.deleted" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
registry-url: "https://npm.pkg.github.com" | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run unit tests | |
run: yarn test:unit |