|
1 | | -name: Test React Application |
| 1 | +# name: Test React Application |
2 | 2 |
|
3 | | -on: |
4 | | - push: |
5 | | - branches: [ "master" ] |
6 | | - pull_request: |
7 | | - workflow_dispatch: |
| 3 | +# on: |
| 4 | +# push: |
| 5 | +# branches: [ "master" ] |
| 6 | +# pull_request: |
| 7 | +# workflow_dispatch: |
8 | 8 |
|
9 | | -jobs: |
10 | | - unit-tests: |
11 | | - timeout-minutes: 15 |
12 | | - runs-on: ubuntu-latest |
| 9 | +# jobs: |
| 10 | +# unit-tests: |
| 11 | +# timeout-minutes: 15 |
| 12 | +# runs-on: ubuntu-latest |
13 | 13 |
|
14 | | - strategy: |
15 | | - matrix: |
16 | | - node-version: [16.x, 18.x, 20.x] |
| 14 | +# strategy: |
| 15 | +# matrix: |
| 16 | +# node-version: [16.x, 18.x, 20.x] |
17 | 17 |
|
18 | | - steps: |
19 | | - - uses: actions/checkout@v4 |
20 | | - - name: Use Node.js ${{ matrix.node-version }} |
21 | | - uses: actions/setup-node@v4 |
22 | | - with: |
23 | | - node-version: ${{ matrix.node-version }} |
24 | | - cache: 'npm' |
25 | | - - name: Install Dependencies and Verify Can Be Built |
26 | | - run: ./scripts/install-dependencies-and-build.sh |
27 | | - - name: Run Unit tests |
28 | | - run: CI=true npm test |
29 | | - # - name: Run Unit and Integration Tests |
30 | | - # run: ./scripts/test.sh |
31 | | - # - name: Publish Test Results |
32 | | - # if: always() |
33 | | - # uses: actions/upload-artifact@v3 |
34 | | - # with: |
35 | | - # name: test-results |
36 | | - # path: | |
37 | | - # cypress/screenshots |
38 | | - # cypress/videos |
| 18 | +# steps: |
| 19 | +# - uses: actions/checkout@v4 |
| 20 | +# - name: Use Node.js ${{ matrix.node-version }} |
| 21 | +# uses: actions/setup-node@v4 |
| 22 | +# with: |
| 23 | +# node-version: ${{ matrix.node-version }} |
| 24 | +# cache: 'npm' |
| 25 | +# - name: Install Dependencies and Verify Can Be Built |
| 26 | +# run: ./scripts/install-dependencies-and-build.sh |
| 27 | +# - name: Run Unit tests |
| 28 | +# run: CI=true npm test |
| 29 | +# - name: Run Unit and Integration Tests |
| 30 | +# run: ./scripts/test.sh |
| 31 | +# - name: Publish Test Results |
| 32 | +# if: always() |
| 33 | +# uses: actions/upload-artifact@v3 |
| 34 | +# with: |
| 35 | +# name: test-results |
| 36 | +# path: | |
| 37 | +# cypress/screenshots |
| 38 | +# cypress/videos |
39 | 39 |
|
40 | | - cypress-component-tests: |
41 | | - runs-on: ubuntu-latest |
42 | | - timeout-minutes: 15 |
43 | | - strategy: |
44 | | - matrix: |
45 | | - node-version: [16.x, 18.x, 20.x] |
46 | | - name: Cypress component tests, node ${{ matrix.node-version }} |
47 | | - steps: |
48 | | - - name: Checkout |
49 | | - uses: actions/checkout@v4 |
50 | | - - name: Setup Node |
51 | | - uses: actions/setup-node@v4 |
52 | | - with: |
53 | | - node-version: ${{ matrix.node-version }} |
54 | | - cache: 'npm' |
55 | | - # Install NPM dependencies, cache them correctly |
56 | | - # and run all Cypress tests |
57 | | - - name: Install dependencies and run tests |
58 | | - uses: cypress-io/github-action@v6 |
59 | | - with: |
60 | | - install-command: npm ci |
61 | | - start: npm start |
62 | | - component: true |
63 | | - browser: chrome |
64 | | - headed: false |
| 40 | +# cypress-component-tests: |
| 41 | +# runs-on: ubuntu-latest |
| 42 | +# timeout-minutes: 15 |
| 43 | +# strategy: |
| 44 | +# matrix: |
| 45 | +# node-version: [16.x, 18.x, 20.x] |
| 46 | +# name: Cypress component tests, node ${{ matrix.node-version }} |
| 47 | +# steps: |
| 48 | +# - name: Checkout |
| 49 | +# uses: actions/checkout@v4 |
| 50 | +# - name: Setup Node |
| 51 | +# uses: actions/setup-node@v4 |
| 52 | +# with: |
| 53 | +# node-version: ${{ matrix.node-version }} |
| 54 | +# cache: 'npm' |
| 55 | +# # Install NPM dependencies, cache them correctly |
| 56 | +# # and run all Cypress tests |
| 57 | +# - name: Install dependencies and run tests |
| 58 | +# uses: cypress-io/github-action@v6 |
| 59 | +# with: |
| 60 | +# install-command: npm ci |
| 61 | +# start: npm start |
| 62 | +# component: true |
| 63 | +# browser: chrome |
| 64 | +# headed: false |
0 commit comments