Skip to content

Commit

Permalink
ci: update install deps script
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Mar 21, 2023
1 parent 3a25636 commit 01c6009
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/test.yml
Expand Up @@ -11,29 +11,19 @@ jobs:
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install global dependencies
run: yarn add nyc coveralls -g

- name: Install dependencies
run: |
npm install nyc coveralls -g
npm install
run: yarn

- name: Run linter
run: npm run lint
Expand Down

0 comments on commit 01c6009

Please sign in to comment.