Skip to content

Commit

Permalink
Merge pull request meteor#11693 from oscard0m/add-cache-to-node-workf…
Browse files Browse the repository at this point in the history
…lows

ci(workflow): add cache to workflows using actions/setup-node
  • Loading branch information
StorytellerCZ authored Oct 14, 2021
2 parents 00939c4 + aa7c495 commit 40fda42
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/npm-eslint-plugin-meteor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: NPM eslint-plugin-meteor
on:
push:
paths:
- 'npm-packages/eslint-plugin-meteor/**'
- "npm-packages/eslint-plugin-meteor/**"
pull_request:
paths:
- 'npm-packages/eslint-plugin-meteor/**'
- "npm-packages/eslint-plugin-meteor/**"
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -14,13 +14,13 @@ jobs:
working-directory: npm-packages/eslint-plugin-meteor
strategy:
matrix:
node-version: [ 12.x, 14.x ]
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test

9 changes: 5 additions & 4 deletions .github/workflows/npm-meteor-babel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: NPM meteor-babel
on:
push:
paths:
- 'npm-packages/meteor-babel/**'
- "npm-packages/meteor-babel/**"
pull_request:
paths:
- 'npm-packages/meteor-babel/**'
- "npm-packages/meteor-babel/**"
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -14,12 +14,13 @@ jobs:
working-directory: npm-packages/meteor-babel
strategy:
matrix:
node-version: [ 12.x, 14.x ]
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run test
9 changes: 5 additions & 4 deletions .github/workflows/npm-meteor-promise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: NPM meteor-promise
on:
push:
paths:
- 'npm-packages/meteor-promise/**'
- "npm-packages/meteor-promise/**"
pull_request:
paths:
- 'npm-packages/meteor-promise/**'
- "npm-packages/meteor-promise/**"
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -14,12 +14,13 @@ jobs:
working-directory: npm-packages/meteor-promise
strategy:
matrix:
node-version: [ 12.x, 14.x ]
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run test

0 comments on commit 40fda42

Please sign in to comment.