-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
…encies Implementation of node's caching
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
# Set default behavior to automatically normalize line endings, and force everything to be LF, except for Windows batch files that require CRLF, so that if a repo is accessed in Unix via a file share from Windows, the scripts will work. | ||
* text=auto eol=lf | ||
*.{cmd,[cC][mM][dD]} text eol=crlf | ||
*.{bat,[bB][aA][tT]} text eol=crlf | ||
.licenses/** -diff linguist-generated=true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: e2e-cache | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
push: | ||
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] | ||
node-version: [10, 12, 14] | ||
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 | ||
|
||
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] | ||
node-version: [10, 12, 14] | ||
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 }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
node-version: [10, 12, 14] | ||
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 }}" | ||
shell: bash |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,4 +123,4 @@ jobs: | |
architecture: 'x86' | ||
- name: Verify node | ||
run: __tests__/verify-arch.sh "ia32" | ||
shell: bash | ||
shell: bash |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ sources: | |
|
||
allowed: | ||
- apache-2.0 | ||
- 0bsd | ||
- bsd-2-clause | ||
- bsd-3-clause | ||
- isc | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.