|
65 | 65 | start: yarn start
|
66 | 66 | wait-on: 'http://localhost:3000'
|
67 | 67 | - name: Upload screenshots
|
68 |
| - uses: actions/upload-artifact@v2 |
| 68 | + uses: actions/upload-artifact@v4 |
69 | 69 | if: failure()
|
70 | 70 | with:
|
71 | 71 | name: cypress-screenshots
|
@@ -96,39 +96,39 @@ jobs:
|
96 | 96 | start: yarn start
|
97 | 97 | wait-on: 'http://localhost:3000'
|
98 | 98 | - name: Upload screenshots
|
99 |
| - uses: actions/upload-artifact@v2 |
| 99 | + uses: actions/upload-artifact@v4 |
100 | 100 | if: failure()
|
101 | 101 | with:
|
102 | 102 | name: cypress-screenshots
|
103 | 103 | path: cypress/screenshots
|
104 | 104 |
|
105 | 105 | test-seo:
|
106 |
| - runs-on: ubuntu-latest |
107 |
| - needs: [tests] |
108 |
| - steps: |
109 |
| - - name: Checkout |
110 |
| - uses: actions/checkout@v2 |
111 |
| - - name: Restore Build |
112 |
| - uses: actions/cache@v2 |
113 |
| - id: restore-build |
114 |
| - with: |
115 |
| - path: | |
116 |
| - .next |
117 |
| - public |
118 |
| - key: ci-docs-test-${{ github.sha }} |
119 |
| - - name: Cypress tests 🧪 |
120 |
| - uses: cypress-io/github-action@v5 |
121 |
| - with: |
122 |
| - headless: true |
123 |
| - config: video=false |
124 |
| - browser: chrome |
125 |
| - spec: cypress/e2e/seo.cy.ts |
126 |
| - build: node scripts/build-pages-fixture.js |
127 |
| - start: yarn start |
128 |
| - wait-on: 'http://localhost:3000' |
129 |
| - - name: Upload screenshots |
130 |
| - uses: actions/upload-artifact@v2 |
131 |
| - if: failure() |
132 |
| - with: |
133 |
| - name: cypress-screenshots |
134 |
| - path: cypress/screenshots |
| 106 | + runs-on: ubuntu-latest |
| 107 | + needs: [tests] |
| 108 | + steps: |
| 109 | + - name: Checkout |
| 110 | + uses: actions/checkout@v2 |
| 111 | + - name: Restore Build |
| 112 | + uses: actions/cache@v2 |
| 113 | + id: restore-build |
| 114 | + with: |
| 115 | + path: | |
| 116 | + .next |
| 117 | + public |
| 118 | + key: ci-docs-test-${{ github.sha }} |
| 119 | + - name: Cypress tests 🧪 |
| 120 | + uses: cypress-io/github-action@v5 |
| 121 | + with: |
| 122 | + headless: true |
| 123 | + config: video=false |
| 124 | + browser: chrome |
| 125 | + spec: cypress/e2e/seo.cy.ts |
| 126 | + build: node scripts/build-pages-fixture.js |
| 127 | + start: yarn start |
| 128 | + wait-on: 'http://localhost:3000' |
| 129 | + - name: Upload screenshots |
| 130 | + uses: actions/upload-artifact@v4 |
| 131 | + if: failure() |
| 132 | + with: |
| 133 | + name: cypress-screenshots |
| 134 | + path: cypress/screenshots |
0 commit comments