Skip to content

Commit

Permalink
Merge pull request #17 from richrace/ensure-builds-happen-before-merging
Browse files Browse the repository at this point in the history
Ensure builds happen
  • Loading branch information
richrace authored Apr 24, 2024
2 parents db5da34 + e2d2b3f commit 11d1b59
Show file tree
Hide file tree
Showing 4 changed files with 7,237 additions and 3,498 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions .ncurc.js
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;
},
};
Loading

0 comments on commit 11d1b59

Please sign in to comment.