Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .github/workflows/buildpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:

jobs:
test-lint:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Check out Git repository
uses: actions/checkout@v1
Expand All @@ -23,9 +23,24 @@ jobs:
with:
node-version: 22.14.0

- name: Restore node_modules cache
id: node_modules-cache
uses: actions/cache/restore@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.node_modules-cache.outputs.cache-hit != 'true'
run: npm install --force

- name: Save node_modules cache
if: steps.node_modules-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}

- name: Run lint
run: npm run lint

Expand All @@ -50,8 +65,23 @@ jobs:
with:
node-version: 22.14.0

- name: Restore node_modules cache
id: node_modules-cache
uses: actions/cache/restore@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.node_modules-cache.outputs.cache-hit != 'true'
run: set CI=false && npm install --force

- name: Save node_modules cache
if: steps.node_modules-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}

- name: Build/release Electron app
uses: DeadCodeGames/action-electron-builder@908b7cf133f1e9bef6d538ab50ad2f7449538cc7
Expand Down
Loading