-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from richrace/ensure-builds-happen-before-merging
Ensure builds happen
- Loading branch information
Showing
4 changed files
with
7,237 additions
and
3,498 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,44 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
build-macos: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: setup appdmg | ||
run: | | ||
python3 -m pip install setuptools | ||
npm install -g [email protected] | ||
- name: install dependencies | ||
run: npm ci | ||
- name: build | ||
run: npm run make | ||
|
||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 19 | ||
node-version: 20 | ||
- name: install dependencies | ||
run: npm ci | ||
- name: build | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const pinned = ['eslint']; | ||
const ignored = []; | ||
const skipped = []; | ||
|
||
module.exports = { | ||
target: (pkg) => { | ||
if (pinned.some((pin) => pin === pkg)) { | ||
const res = 'minor'; | ||
console.log(` ${pkg} is pinned to ${res} upgrades only (.ncurc.js)`); | ||
return res; | ||
} | ||
return 'latest'; | ||
}, | ||
|
||
filterResults: (pkg, { upgradedVersion }) => { | ||
if (ignored.some((ignore) => ignore.pkg === pkg)) { | ||
return false; | ||
} | ||
if (skipped.some((skip) => skip.pkg === pkg && skip.version === upgradedVersion)) { | ||
return false; | ||
} | ||
return true; | ||
}, | ||
}; |
Oops, something went wrong.