Skip to content

Commit f717ad1

Browse files
committed
Use cypress to build app
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent d199c40 commit f717ad1

17 files changed

Lines changed: 8 additions & 35 deletions

.github/workflows/cypress.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ jobs:
4040
with:
4141
node-version: ${{ matrix.node-version }}
4242

43-
- name: Install dependencies & build app
44-
run: |
45-
npm ci
46-
TESTING=true npm run build --if-present
47-
4843
- name: Wait for server
4944
run: |
5045
npm install -g wait-on
@@ -60,13 +55,15 @@ jobs:
6055
with:
6156
record: true
6257
parallel: true
58+
build: npm run build
6359
# cypress env
6460
ci-build-id: ${{ github.sha }}-${{ github.run_number }}
6561
tag: ${{ github.event_name }}
6662
env:
6763
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
6864
# https://github.com/cypress-io/github-action/issues/124
6965
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
66+
TESTING: true
7067

7168
- name: Upload snapshots
7269
uses: actions/upload-artifact@v2

cypress/integration/files-shares.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
*/
2222

23-
// Import font so CI has the same
24-
import '!url-loader!style-loader!css-loader?fontsource-roboto'
2523
import { randHash } from '../utils/'
2624
const randUser = randHash()
2725

cypress/integration/files.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
*/
2222

23-
// Import font so CI has the same
24-
import '!url-loader!style-loader!css-loader?fontsource-roboto'
2523

2624
describe('Files default view', function() {
2725
before(function() {

cypress/integration/image-small.png.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
*/
2222

23-
// Import font so CI has the same
24-
import '!url-loader!style-loader!css-loader?fontsource-roboto'
2523
import { randHash } from '../utils/'
2624
const randUser = randHash()
2725

cypress/integration/image.gif.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
*/
2222

23-
// Import font so CI has the same
24-
import '!url-loader!style-loader!css-loader?fontsource-roboto'
2523
import { randHash } from '../utils/'
2624
const randUser = randHash()
2725

cypress/integration/image.png.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
*/
2222

23-
// Import font so CI has the same
24-
import '!url-loader!style-loader!css-loader?fontsource-roboto'
2523
import { randHash } from '../utils/'
2624
const randUser = randHash()
2725

cypress/integration/image.svg.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
*/
2222

23-
// Import font so CI has the same
24-
import '!url-loader!style-loader!css-loader?fontsource-roboto'
2523
import { randHash } from '../utils/'
2624
const randUser = randHash()
2725

cypress/integration/images-custom-list-loadmore.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
*/
2222

23-
// Import font so CI has the same
24-
import '!url-loader!style-loader!css-loader?fontsource-roboto'
2523
import { randHash } from '../utils/'
2624
const randUser = randHash()
2725

cypress/integration/images-custom-list.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
*/
2222

23-
// Import font so CI has the same
24-
import '!url-loader!style-loader!css-loader?fontsource-roboto'
2523
import { randHash } from '../utils/'
2624
const randUser = randHash()
2725

cypress/integration/images.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
*/
2222

23-
// Import font so CI has the same
24-
import '!url-loader!style-loader!css-loader?fontsource-roboto'
2523
import { randHash } from '../utils/'
2624
const randUser = randHash()
2725

0 commit comments

Comments
 (0)