Skip to content

Commit

Permalink
CI: Use volta-cli/action to use the correct node version (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish authored Jan 6, 2023
1 parent 35bb8b4 commit 34481a6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- uses: volta-cli/action@v3
- name: Install
run: yarn install
- name: Build
Expand All @@ -41,10 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- uses: volta-cli/action@v3
- run: yarn install
- name: Run Linter
run: yarn lint
Expand All @@ -60,10 +54,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- uses: volta-cli/action@v3
- run: yarn install
- name: Run Unit Tests
run: yarn test
Expand All @@ -81,10 +72,7 @@ jobs:
ELECTRON_VERSION: ${{ matrix.electron }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- uses: volta-cli/action@v3
- uses: actions/cache@v2
with:
path: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/new-versions-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- uses: volta-cli/action@v3
- run: yarn install
- name: Update Versions
run: yarn update-electron-versions
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"yaml": "^1.10.2"
},
"volta": {
"node": "16.14.0",
"node": "18.12.1",
"yarn": "1.22.17"
}
}
6 changes: 5 additions & 1 deletion test/e2e/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ export class TestContext {

private _clearAppUserData() {
for (const dir of getDeleteDirectories(this._appName)) {
rmSync(dir, { recursive: true, force: true });
try {
rmSync(dir, { recursive: true, force: true });
} catch (_) {
//
}
}
}
}
Expand Down

0 comments on commit 34481a6

Please sign in to comment.