Skip to content

try npm hack

try npm hack #26

name: E2E Install from git
# TODO test global installs, too?
on:
push:
branches:
- e2e-git-installs
# 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:
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:
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:
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
strategy:
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