-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Test merges with master (#1952)
I hope merge doesn’t run on the master branch. I disable the pull request events to prevent double builds.
- Loading branch information
Showing
4 changed files
with
54 additions
and
6 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
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,41 @@ | ||
name: Test Merge | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- '!master' | ||
# pull_request: | ||
# types: [opened, synchronize] | ||
jobs: | ||
test-merge: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# chances are that we'll never break on a merge to master on just one version of node | ||
node-version: [12.x] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: merge master | ||
run: git merge origin/master | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# https://github.com/nodejs/node-gyp/issues/1663#issuecomment-535049449 | ||
- name: patch node gyp on windows to support Visual Studio 2019 | ||
if: matrix.os == 'windows-latest' | ||
shell: powershell | ||
run: | | ||
npm install --global node-gyp@latest | ||
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} | ||
- name: npm install | ||
run: npm install | ||
- name: npm run rebuild | ||
run: npm run rebuild | ||
- name: npm test | ||
run: npm test | ||
- name: coverage | ||
run: npm run coverage | ||
env: | ||
CI: true |
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
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