From a46cc66d934ca1c8bcac241bfc2eb44e0220d0c2 Mon Sep 17 00:00:00 2001 From: Keita Nonaka Date: Thu, 10 Aug 2023 00:25:36 -0700 Subject: [PATCH] ci: wasm build --- .github/workflows/playwrightCI.yml | 4 +++- .github/workflows/webCI.yml | 4 ++-- web/.eslintrc.json | 1 + web/package.json | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/playwrightCI.yml b/.github/workflows/playwrightCI.yml index 04a1166..d6cea58 100644 --- a/.github/workflows/playwrightCI.yml +++ b/.github/workflows/playwrightCI.yml @@ -18,7 +18,9 @@ jobs: with: node-version: 18 - name: Install dependencies - run: npm ci + run: | + npm ci + npm run build:wasm - name: Install Playwright Browsers run: npx playwright install --with-deps - name: Run Playwright e2e tests diff --git a/.github/workflows/webCI.yml b/.github/workflows/webCI.yml index 21d69ed..c9661fa 100644 --- a/.github/workflows/webCI.yml +++ b/.github/workflows/webCI.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: [18.x] + node-version: [20.x] steps: - uses: actions/checkout@v3 @@ -42,7 +42,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: [18.x] + node-version: [20.x] steps: - uses: actions/checkout@v3 diff --git a/web/.eslintrc.json b/web/.eslintrc.json index 3a30fcb..2d199f1 100644 --- a/web/.eslintrc.json +++ b/web/.eslintrc.json @@ -18,6 +18,7 @@ "@typescript-eslint/explicit-member-accessibility": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/prefer-interface": "off", + "@typescript-eslint/no-empty-function": "off", "react/react-in-jsx-scope": "off", "react/self-closing-comp": ["error"], "react/display-name": "off", // TODO: remove this in the future diff --git a/web/package.json b/web/package.json index 40ba5d3..1bc6fdf 100644 --- a/web/package.json +++ b/web/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next", - "build": "next build", + "build": "npm run build:wasm && next build", "build:wasm": "wasm-pack build src/web_assembly --target web --release", "start": "next start -p $PORT", "lint-app": "eslint './src/**/*.{ts,tsx}'",