summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-12 22:42:12 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-17 17:06:47 +0200
commit4397a959e806bf476be4c81bc804616adf58b969 (patch)
treea2bfdcb314594433413a235b516d18fa5416bf6d /.github
parentd21606bd238702645690586df5ad5b5075ca09c9 (diff)
ui: Migrate from CRA to Next.js
This change updates the web frontend to use Next.js instead of Create React App (CRA). Next.js enables the possibility of rendering pages on the server side (which reduces the time to first frame) and overall provides a better development experience. Future commits will try to futher optimize the implementation for Next.js.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml9
1 files changed, 4 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cbf2f80d..f2effb2f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -98,18 +98,17 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
- node: [14.x]
+ node: [16]
defaults:
run:
working-directory: opendc-web/opendc-web-ui
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- - run: npm install
- - run: npm run build --if-present
- - run: npm test
+ - run: yarn install --frozen-lockfile
+ - run: yarn build
env:
CI: true