Skip to content

Update ci.yml

Update ci.yml #4

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v2
- name: Setup Node.js πŸ—
uses: actions/[email protected]
with:
node-version: 16
- name: Get yarn cache directory path πŸ› 
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> $GITHUB_ENV
- name: Cache node_modules πŸ“¦
uses: actions/cache@v2
with:
path: ${{ env.YARN_CACHE_DIR }}
key: ubuntu-latest-yarn-${{ hashFiles('new-web/yarn.lock') }}
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
working-directory: new-web
run: yarn install
- name: Run linter πŸ‘€
working-directory: new-web
run: yarn lint
- name: Run tests πŸ§ͺ
working-directory: new-web
run: yarn test