Workflow file for this run
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
name: E2E Install from git | |
on: | |
# Only while testing this PR NOTE ALSO CHANGE BRANCH NAME FOR INSTALL COMMANDS BEFORE MERGE | |
push: | |
branches: | |
- e2e-git-installs | |
# nightly | |
schedule: | |
- cron: '0 0 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
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 | |
- run: | | |
npm --version | |
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json | |
npm install https://github.com/TypeStrong/ts-node#e2e-git-installs | |
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 | |
- 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#e2e-git-installs | |
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 | |
- 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#e2e-git-installs | |
yarn add typescript | |
yarn test | |
yarn1: | |
name: "yarn1" | |
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 | |
- run: | | |
npm install -g yarn | |
yarn --version | |
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json | |
yarn add https://github.com/TypeStrong/ts-node#e2e-git-installs | |
yarn test |