fix(electron): sandbox for production env #72
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: MC Docu CI | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- '**.spec.js' | |
- '.idea/**' | |
- '.vscode/**' | |
- '.dockerignore' | |
- 'Dockerfile' | |
- '.gitignore' | |
- '.github/**' | |
- '!.github/workflows/build.yml' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 360 | |
strategy: | |
fail-fast: true | |
max-parallel: 4 | |
matrix: | |
version: ['latest'] | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.version }} | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install --force | |
- name: Build Release Files | |
run: npm run build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run Tests | |
run: npm test | |
- name: Electronegativity | |
uses: doyensec/[email protected] | |
- name: Build for Windows | |
if: matrix.os == 'windows-latest' | |
run: npm run build:win | |
- name: Build for macOS | |
if: matrix.os == 'macos-latest' | |
run: npm run build:mac | |
- name: Build for Linux | |
if: matrix.os == 'ubuntu-latest' | |
run: npm run build:linux | |
- name: List Release Files (Linux & macOS) | |
if: runner.os != 'Windows' | |
run: ls -la dist/ | |
- name: List Release Files (Windows) | |
if: runner.os == 'Windows' | |
run: dir dist | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release_on_${{ matrix.os }}_node_${{ matrix.version }} | |
path: dist/ | |
retention-days: 62 | |
if-no-files-found: warn | |
- name: Download Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: release_on_${{ matrix.os }}_node_${{ matrix.version }} | |
path: dist/ |