2021-06-16 06:52:44 +00:00
|
|
|
name: e2e-cache
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2021-06-25 09:06:49 +00:00
|
|
|
- '**.md'
|
|
|
|
push:
|
2021-06-16 06:52:44 +00:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- releases/*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
node-npm-depencies-caching:
|
|
|
|
name: Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2021-06-30 12:07:45 +00:00
|
|
|
node-version: [12, 14, 16]
|
2021-06-16 06:52:44 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Clean global cache
|
|
|
|
run: npm cache clean --force
|
|
|
|
- name: Setup Node
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Verify node and npm
|
|
|
|
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
|
|
|
|
shell: bash
|
2021-06-30 15:44:51 +00:00
|
|
|
|
|
|
|
node-pnpm-depencies-caching:
|
|
|
|
name: Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
node-version: [12, 14, 16]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install pnpm
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
with:
|
2021-07-15 11:51:41 +00:00
|
|
|
version: 6.10.0
|
2021-06-30 15:44:51 +00:00
|
|
|
- name: Generate pnpm file
|
|
|
|
run: pnpm install
|
|
|
|
- name: Remove dependencies
|
|
|
|
shell: pwsh
|
|
|
|
run: Remove-Item node_modules -Force -Recurse
|
|
|
|
- name: Clean global cache
|
|
|
|
run: rm -rf ~/.pnpm-store
|
|
|
|
shell: bash
|
|
|
|
- name: Setup Node
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install
|
|
|
|
- name: Verify node and pnpm
|
|
|
|
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
|
|
|
|
shell: bash
|
2021-06-16 06:52:44 +00:00
|
|
|
|
|
|
|
node-yarn1-depencies-caching:
|
|
|
|
name: Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2021-06-30 12:07:45 +00:00
|
|
|
node-version: [12, 14, 16]
|
2021-06-16 06:52:44 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Yarn version
|
|
|
|
run: yarn --version
|
|
|
|
- name: Generate yarn file
|
|
|
|
run: yarn install
|
|
|
|
- name: Remove dependencies
|
|
|
|
shell: pwsh
|
|
|
|
run: Remove-Item node_modules -Force -Recurse
|
|
|
|
- name: Clean global cache
|
|
|
|
run: yarn cache clean
|
|
|
|
- name: Setup Node
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn install
|
|
|
|
- name: Verify node and yarn
|
|
|
|
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
node-yarn2-depencies-caching:
|
|
|
|
name: Test yarn 2 (Node ${{ matrix.node-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
2021-08-02 17:44:59 +00:00
|
|
|
env:
|
|
|
|
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
2021-06-16 06:52:44 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2021-06-30 12:07:45 +00:00
|
|
|
node-version: [12, 14, 16]
|
2021-06-16 06:52:44 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Update yarn
|
|
|
|
run: yarn set version berry
|
|
|
|
- name: Yarn version
|
|
|
|
run: yarn --version
|
|
|
|
- name: Generate simple .yarnrc.yml
|
|
|
|
run: |
|
|
|
|
echo "nodeLinker: node-modules" >> .yarnrc.yml
|
|
|
|
- name: Generate yarn file
|
|
|
|
run: yarn install
|
|
|
|
- name: Remove dependencies
|
|
|
|
shell: pwsh
|
|
|
|
run: Remove-Item node_modules -Force -Recurse
|
|
|
|
- name: Clean global cache
|
|
|
|
run: yarn cache clean --all
|
|
|
|
- name: Setup Node
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn install
|
|
|
|
- name: Verify node and yarn
|
|
|
|
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
|
2021-07-15 11:51:41 +00:00
|
|
|
shell: bash
|