From d4315bd7bd4f96b14eec73276e14d1544b002a73 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Tue, 3 Mar 2026 02:13:55 +1300 Subject: [PATCH] Install dev modules web pull actions --- .github/workflows/pull-android.yml | 62 ++++++++++++++--------------- .github/workflows/pull-desktop.yml | 64 +++++++++++++++--------------- .github/workflows/pull-web.yml | 40 +++++++++---------- 3 files changed, 83 insertions(+), 83 deletions(-) diff --git a/.github/workflows/pull-android.yml b/.github/workflows/pull-android.yml index 527e127b..a2491c31 100644 --- a/.github/workflows/pull-android.yml +++ b/.github/workflows/pull-android.yml @@ -1,46 +1,46 @@ name: Check Android on: - pull_request: - branches: ["main"] + pull_request: + branches: ["main"] permissions: - contents: write + contents: write jobs: - android-check: - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./materialious/android + android-check: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./materialious/android - steps: - - uses: actions/checkout@v3 + steps: + - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: latest + - uses: actions/setup-node@v3 + with: + node-version: latest - - name: Install modules - run: cd ../ && npm ci + - name: Install modules + run: cd ../ && npm ci - - name: Build android nodejs packages - run: cd ../static/nodejsAndroid && npm ci + - name: Build android nodejs packages + run: cd ../static/nodejsAndroid && npm ci - - name: Build package - run: cd ../ && npm run build && npm prune --omit=dev + - name: Build package + run: cd ../ && npm run build && npm prune --omit=dev - - name: Sync package - run: cd ../ && npx cap sync + - name: Sync package + run: cd ../ && npx cap sync - - name: Setup JDK - uses: actions/setup-java@v3 - with: - distribution: "zulu" - java-version: "21" - cache: "gradle" + - name: Setup JDK + uses: actions/setup-java@v3 + with: + distribution: "zulu" + java-version: "21" + cache: "gradle" - - name: Build App - run: | - bash gradlew assembleRelease - bash gradlew bundleRelease + - name: Build App + run: | + bash gradlew assembleRelease + bash gradlew bundleRelease diff --git a/.github/workflows/pull-desktop.yml b/.github/workflows/pull-desktop.yml index d37feac4..a88b8f56 100644 --- a/.github/workflows/pull-desktop.yml +++ b/.github/workflows/pull-desktop.yml @@ -1,50 +1,50 @@ name: Check desktop on: - pull_request: - branches: ["main"] + pull_request: + branches: ["main"] - workflow_dispatch: + workflow_dispatch: permissions: - contents: write + contents: write jobs: - desktop-check: - strategy: - matrix: - node-version: [latest] - runtime: - - osx-x64 + desktop-check: + strategy: + matrix: + node-version: [latest] + runtime: + - osx-x64 - include: - - runtime: osx-x64 - os: macOS-latest + include: + - runtime: osx-x64 + os: macOS-latest - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 + steps: + - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} - - name: Install modules - run: cd ./materialious && npm ci + - name: Install modules + run: cd ./materialious && npm ci - - name: Build package - run: cd ./materialious && npm run build && npm prune --omit=dev + - name: Build package + run: cd ./materialious && npm run build && npm prune --omit=dev - - name: Sync electron package - run: cd ./materialious && npx cap sync @capacitor-community/electron + - name: Sync electron package + run: cd ./materialious && npx cap sync @capacitor-community/electron - - name: Patch capacitor plugin - run: cd ./materialious/electron && python patch_capacitor_plugin.py + - name: Patch capacitor plugin + run: cd ./materialious/electron && python patch_capacitor_plugin.py - - name: Install electron modules - run: cd ./materialious/electron && npm ci + - name: Install electron modules + run: cd ./materialious/electron && npm ci - - name: Build desktop packages - run: cd ./materialious/electron && npm run electron:make-no-publish + - name: Build desktop packages + run: cd ./materialious/electron && npm run electron:make-no-publish diff --git a/.github/workflows/pull-web.yml b/.github/workflows/pull-web.yml index 295f6e8a..bcccd3e1 100644 --- a/.github/workflows/pull-web.yml +++ b/.github/workflows/pull-web.yml @@ -1,26 +1,26 @@ name: Check web on: - pull_request: - branches: ["main"] + pull_request: + branches: ["main"] jobs: - web-check: - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./materialious + web-check: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./materialious - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: latest - - name: Install modules - run: npm ci - - name: Run svelte checks - run: npm run check - - name: Check linting - run: npm run eslint - - name: Attempt to build codebase - run: npm run build && npm prune --omit=dev + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: latest + - name: Install modules + run: npm install + - name: Run svelte checks + run: npm run check + - name: Check linting + run: npm run eslint + - name: Attempt to build codebase + run: npm run build && npm prune --omit=dev