-
-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
installation from git in various package managers: add e2e, fix (#2010)
* add e2e tests for installing ts-node from git w/various package managers * fix installation from git, add workaround for npm bugs
- Loading branch information
Showing
5 changed files
with
131 additions
and
22 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,95 @@ | ||
name: E2E Install from git | ||
# TODO test global installs, too? | ||
on: | ||
# nightly | ||
schedule: | ||
- cron: '0 0 * * *' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
jobs: | ||
npm: | ||
name: "npm" | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu, windows] | ||
steps: | ||
# install node | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Test | ||
run: | | ||
npm --version | ||
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json | ||
npm install https://github.com/TypeStrong/ts-node#main | ||
npm test | ||
pnpm: | ||
name: "pnpm" | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu, windows] | ||
steps: | ||
# install node | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Test | ||
run: | | ||
corepack enable | ||
corepack prepare pnpm@latest --activate | ||
pnpm --version | ||
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json | ||
pnpm install https://github.com/TypeStrong/ts-node#main | ||
pnpm test | ||
yarn: | ||
name: "yarn" | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu, windows] | ||
steps: | ||
# install node | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Test | ||
run: | | ||
corepack enable | ||
corepack prepare yarn@stable --activate | ||
yarn --version | ||
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json | ||
yarn add ts-node@https://github.com/TypeStrong/ts-node#main | ||
yarn add typescript | ||
yarn test | ||
yarn1: | ||
name: "yarn1 (officially *not* supported)" | ||
runs-on: ${{ matrix.os }}-latest | ||
continue-on-error: true | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu, windows] | ||
steps: | ||
# install node | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Test | ||
run: | | ||
npm install -g yarn | ||
yarn --version | ||
yarn cache list | ||
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json | ||
yarn add https://github.com/TypeStrong/ts-node#main | ||
yarn test |
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
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