Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

build: migrate to yarn #244

Merged
merged 5 commits into from
Jul 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,27 @@ jobs:
node-version: 12

# Cache
- name: Get npm cache directory
id: npm-config
run: echo "::set-output name=dir::$(npm config get cache)"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache Dependencies
id: cache-npm
uses: actions/cache@v1
uses: actions/cache@v2.0.0
with:
path: ${{ steps.npm-config.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Clean npm cache directory before Deploy
if: steps.cache-npm.outputs.cache-hit != 'true' && github.event_name == 'push' && contains(github.event.commits[0].message, 'increment version')
run: npm cache clear --force
${{ runner.os }}-yarn-

- name: Install Dependencies
run: npm ci
run: yarn --frozen-lockfile
- name: Lint
run: npm run lint
run: yarn lint
- name: Build
run: npm run build
run: yarn build
- name: Test
run: yarn test
- name: Test with Jest
run: npm test
run: yarn test
- name: Report Code Coverage to codecov
uses: codecov/codecov-action@v1
- name: GitHub Actions Build Test
Expand Down
Loading