|
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 | | - check-latest: true |
31 | | - |
32 | | - - name: Get yarn cache directory path π |
33 | | - id: yarn-cache-dir-path |
34 | | - run: echo "::set-output name=dir::$(yarn cache dir)" |
35 | | - |
36 | | - - name: Cache node_modules π¦ |
37 | | - uses: actions/cache@v2.1.4 |
38 | | - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) |
39 | | - with: |
40 | | - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
41 | | - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
42 | | - restore-keys: | |
43 | | - ${{ runner.os }}-yarn- |
44 | | -
|
45 | | - - name: Install dependencies π¨π»βπ» |
46 | | - run: yarn |
47 | | - |
48 | | - - name: Run linter π |
49 | | - run: yarn lint |
50 | | - |
51 | | - - name: Run tests π§ͺ |
52 | | - run: yarn test |
| 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 | +# check-latest: true |
| 31 | + |
| 32 | +# - name: Get yarn cache directory path π |
| 33 | +# id: yarn-cache-dir-path |
| 34 | +# run: echo "::set-output name=dir::$(yarn cache dir)" |
| 35 | + |
| 36 | +# - name: Cache node_modules π¦ |
| 37 | +# uses: actions/cache@v2.1.4 |
| 38 | +# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) |
| 39 | +# with: |
| 40 | +# path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
| 41 | +# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
| 42 | +# restore-keys: | |
| 43 | +# ${{ runner.os }}-yarn- |
| 44 | + |
| 45 | +# - name: Install dependencies π¨π»βπ» |
| 46 | +# run: yarn |
| 47 | + |
| 48 | +# - name: Run linter π |
| 49 | +# run: yarn lint |
| 50 | + |
| 51 | +# - name: Run tests π§ͺ |
| 52 | +# run: yarn test |
0 commit comments