mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-27 21:44:21 -04:00
Switch the base framework from Create React App to Next.JS
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a979b6ffdd
commit
77a60c6c48
361 changed files with 5130 additions and 9605 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node: [ '12', '14', '16' ]
|
||||
node: [ '14', '16' ]
|
||||
name: Test and build with NodeJS ${{ matrix.node }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
@ -38,6 +38,6 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile --prefer-offline
|
||||
- name: Test Project
|
||||
run: yarn test
|
||||
run: yarn test:ci
|
||||
- name: Build project
|
||||
run: yarn build:mock
|
||||
|
|
12
.github/workflows/e2e.yml
vendored
12
.github/workflows/e2e.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
|||
uses: actions/cache@v2.1.7
|
||||
id: build-cache
|
||||
with:
|
||||
path: build
|
||||
path: .next
|
||||
key: build-${{ github.sha }}
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
|
@ -56,8 +56,8 @@ jobs:
|
|||
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: build
|
||||
path: build
|
||||
name: next-build
|
||||
path: .next
|
||||
|
||||
end2end:
|
||||
name: Perform E2E Test in ${{ matrix.browser }}
|
||||
|
@ -79,13 +79,13 @@ jobs:
|
|||
- name: Download built frontend
|
||||
uses: actions/download-artifact@master
|
||||
with:
|
||||
name: build
|
||||
path: build
|
||||
name: next-build
|
||||
path: .next
|
||||
|
||||
- uses: cypress-io/github-action@v2
|
||||
with:
|
||||
browser: ${{ matrix.browser }}
|
||||
start: 'yarn serve:build'
|
||||
start: 'yarn start:ci'
|
||||
parallel: true
|
||||
record: true
|
||||
group: "UI - ${{ matrix.browser }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue