name: build-checks on: push: pull_request: jobs: build-web: strategy: matrix: os: [ macos, ubuntu, windows ] mode: [ # Vite mode: https://vitejs.dev/guide/env-and-mode.html development, # Used by `dev` command production, # Used by `build` command # Vitest mode: https://vitest.dev/guide/cli.html test, # Used by Vitest ] fail-fast: false # Allows to see results from other combinations runs-on: ${{ matrix.os }}-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Setup node uses: ./.github/actions/setup-node - name: Install dependencies uses: ./.github/actions/npm-install-dependencies - name: Build web run: npm run build -- --mode ${{ matrix.mode }} - name: Verify web build artifacts run: npm run check:verify-build-artifacts -- --web build-desktop: strategy: matrix: os: [ macos, ubuntu, windows ] mode: [ # electron-vite modes: https://electron-vite.org/guide/env-and-mode.html#global-env-variables development, # Used by `dev` command production, # Used by `build` and `preview` commands ] fail-fast: false # Allows to see results from other combinations runs-on: ${{ matrix.os }}-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Setup node uses: ./.github/actions/setup-node - name: Install dependencies uses: ./.github/actions/npm-install-dependencies - name: Prebuild desktop run: npm run electron:prebuild -- --mode ${{ matrix.mode }} - name: Verify unbundled desktop build artifacts run: npm run check:verify-build-artifacts -- --electron-unbundled - name: Build (bundle and package) desktop application run: npm run electron:build -- --publish never - name: Verify bundled desktop build artifacts run: npm run check:verify-build-artifacts -- --electron-bundled