-
-
Notifications
You must be signed in to change notification settings - Fork 85
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 #462 from ericblade/dev
begin running tests in node 19.x
- Loading branch information
Showing
2 changed files
with
56 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Test Pull Requests To Master (Node pre-17) | ||
|
||
on: | ||
push: | ||
branches: | ||
- greenkeeper/* | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] # NOTE: When removing 14.x, we should be able to remove the 'upgrade npm' step!!! | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: upgrade npm | ||
run: npm install -g npm | ||
- name: npm versions | ||
run: | | ||
node --version | ||
npm --version | ||
- name: ci install | ||
run: npm ci | ||
- name: build | ||
run: npm run build --if-present | ||
- name: module test | ||
run: npm run test:module | ||
- name: run all code tests | ||
run: npm test | ||
- name: test package import | ||
run: | | ||
npm install ts-node @std/esm | ||
npm run test:import | ||
- name: test package require | ||
run: | | ||
npm run test:require |
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