-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implementation of node's caching #272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
maxim-lobanov
merged 10 commits into
actions:main
from
akv-platform:add-caching-for-node-dependencies
Jun 30, 2021
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3d0d4ed
Add node's caching implementation (#2)
dmitry-shibanov 05f3e9f
remove eol in gitattributes
dmitry-shibanov 1088324
remove workaround
dmitry-shibanov f2b87bb
Squashed commit of the following:
dmitry-shibanov d36a331
work on resolving comments
dmitry-shibanov 282049a
regenerate license (#7)
7292279
fix for documentation
dmitry-shibanov 55e1049
Merge branch 'main' into add-caching-for-node-dependencies
dmitry-shibanov b259ba4
rebuild project
dmitry-shibanov cfe70f9
update dependencies
dmitry-shibanov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -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 |
This file contains hidden or 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,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 |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -109,4 +109,4 @@ jobs: | |
| architecture: 'x86' | ||
| - name: Verify node | ||
| run: __tests__/verify-arch.sh "ia32" | ||
| shell: bash | ||
| shell: bash | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.