Browse Source

Update ci.yml

master
yuriy0803 2 years ago committed by GitHub
parent
commit
7223747b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      .github/workflows/ci.yml

35
.github/workflows/ci.yml

@ -10,22 +10,16 @@ on:
jobs: jobs:
ci: ci:
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps: steps:
- name: Checkout 🛎 - name: Checkout 🛎
uses: actions/checkout@master uses: actions/checkout@v2
- name: Setup node env 🏗 - name: Setup Node.js 🏗
uses: actions/setup-node@v2.1.5 uses: actions/setup-node@v2
with: with:
node-version: ${{ matrix.node }} node-version: 14
check-latest: true
- name: Get yarn cache directory path 🛠 - name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path id: yarn-cache-dir-path
@ -36,23 +30,16 @@ jobs:
id: yarn-cache id: yarn-cache
with: with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ubuntu-latest-yarn-${{ hashFiles('new-web/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies 👨🏻💻 - name: Install dependencies 👨🏻💻
run: yarn working-directory: new-web
run: yarn install
- name: Run linter in root directory 👀 - name: Run linter 👀
working-directory: new-web
run: yarn lint run: yarn lint
- name: Run tests in root directory 🧪 - name: Run tests 🧪
run: yarn test
- name: Run tests in new-web directory 📂
working-directory: new-web working-directory: new-web
run: yarn test run: yarn test
- name: Run lint in new-web directory 📂
working-directory: new-web
run: yarn lint

Loading…
Cancel
Save