chore: fix create workspace bugs #63
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Web2-CI | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/web2_ci.yaml" | |
- "frontend/appflowy_web_app/**" | |
- "frontend/resources/**" | |
env: | |
NODE_VERSION: "18.16.0" | |
PNPM_VERSION: "8.5.0" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
web-build: | |
if: github.event.pull_request.draft != true | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ ubuntu-latest ] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Maximize build space (ubuntu only) | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
sudo docker image prune --all --force | |
sudo rm -rf /opt/hostedtoolcache/codeQL | |
sudo rm -rf ${GITHUB_WORKSPACE}/.git | |
sudo rm -rf $ANDROID_HOME/ndk | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- name: Node_modules cache | |
uses: actions/cache@v2 | |
with: | |
path: frontend/appflowy_web_app/node_modules | |
key: node-modules-${{ runner.os }} | |
- name: install frontend dependencies | |
working-directory: frontend/appflowy_web_app | |
run: | | |
pnpm install | |
- name: test and lint | |
working-directory: frontend/appflowy_web_app | |
run: | | |
pnpm run lint | |
- name: build | |
working-directory: frontend/appflowy_web_app | |
run: | | |
pnpm run build |