This commit is contained in:
Philip Peterson 2025-04-25 23:39:46 -07:00
parent 505ef5f9bf
commit 398f57fff5
No known key found for this signature in database
GPG key ID: 354311183FC6519B

View file

@ -16,6 +16,7 @@ runs:
node-version: ${{ env.NODE_VERSION }} node-version: ${{ env.NODE_VERSION }}
- name: Fix node-gyp and Python - name: Fix node-gyp and Python
shell: bash
run: | run: |
if [[ "$RUNNER_OS" == "macOS" ]]; then if [[ "$RUNNER_OS" == "macOS" ]]; then
brew install python-setuptools python-packaging brew install python-setuptools python-packaging
@ -24,6 +25,7 @@ runs:
fi fi
- name: Get yarn cache directory path - name: Get yarn cache directory path
shell: bash
id: yarn-cache-dir-path id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
@ -35,20 +37,24 @@ runs:
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- name: Install - name: Install
shell: bash
run: yarn install run: yarn install
env: env:
npm_config_node_gyp: ${{ github.workspace }}${{ runner.os == 'Windows' && '\node_modules\node-gyp\bin\node-gyp.js' || '/node_modules/node-gyp/bin/node-gyp.js' }} npm_config_node_gyp: ${{ github.workspace }}${{ runner.os == 'Windows' && '\node_modules\node-gyp\bin\node-gyp.js' || '/node_modules/node-gyp/bin/node-gyp.js' }}
- name: Install libarchive-tools - name: Install libarchive-tools
shell: bash
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: | run: |
sudo apt update sudo apt update
sudo apt install libarchive-tools sudo apt install libarchive-tools
- name: Lint and Run Unit Tests - name: Lint and Run Unit Tests
shell: bash
run: yarn run test run: yarn run test
- name: Getting Build Icon - name: Getting Build Icon
shell: bash
if: github.ref == 'refs/heads/canary' || github.base_ref == 'canary' if: github.ref == 'refs/heads/canary' || github.base_ref == 'canary'
run: | run: |
cp build/canary.ico build/icon.ico cp build/canary.ico build/icon.ico
@ -86,6 +92,7 @@ runs:
dist/*.exe dist/*.exe
- name: Run E2E Tests - name: Run E2E Tests
shell: bash
if: runner.os != 'Linux' if: runner.os != 'Linux'
run: yarn run test:e2e --verbose run: yarn run test:e2e --verbose
@ -106,6 +113,7 @@ runs:
path: dist/tmp/*.png path: dist/tmp/*.png
- name: Save the pr number in an artifact - name: Save the pr number in an artifact
shell: bash
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
env: env:
PR_NUM: ${{ github.event.number }} PR_NUM: ${{ github.event.number }}