Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy0803 authored Oct 24, 2023
1 parent 19b591b commit 7223747
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,16 @@ on:

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [14]
runs-on: ubuntu-latest

steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Setup node env πŸ—
uses: actions/setup-node@v2.1.5
- name: Setup Node.js πŸ—
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
check-latest: true
node-version: 14

- name: Get yarn cache directory path πŸ› 
id: yarn-cache-dir-path
Expand All @@ -36,23 +30,16 @@ jobs:
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
key: ubuntu-latest-yarn-${{ hashFiles('new-web/yarn.lock') }}

- 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

- name: Run tests in root directory πŸ§ͺ
run: yarn test

- name: Run tests in new-web directory πŸ“‚
- name: Run tests πŸ§ͺ
working-directory: new-web
run: yarn test

- name: Run lint in new-web directory πŸ“‚
working-directory: new-web
run: yarn lint

0 comments on commit 7223747

Please sign in to comment.