Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

Commit c8dd351

Browse files
author
Leonid Meleshin
authored
Create ci.yml
1 parent 37c8f26 commit c8dd351

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
branches:
10+
- main
11+
- master
12+
13+
jobs:
14+
ci:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest]
20+
node: [14]
21+
22+
steps:
23+
- name: Checkout πŸ›Ž
24+
uses: actions/checkout@master
25+
26+
- name: Setup node env πŸ—
27+
uses: actions/setup-node@v2.1.5
28+
with:
29+
node-version: ${{ matrix.node }}
30+
31+
- name: Get yarn cache directory path πŸ› 
32+
id: yarn-cache-dir-path
33+
run: echo "::set-output name=dir::$(yarn cache dir)"
34+
35+
- name: Cache node_modules πŸ“¦
36+
uses: actions/cache@v2.1.4
37+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
38+
with:
39+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
40+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-yarn-
43+
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
44+
run: yarn
45+
46+
- name: Run linter πŸ‘€
47+
run: yarn lint

0 commit comments

Comments
Β (0)