File tree 3 files changed +51
-36
lines changed
3 files changed +51
-36
lines changed Original file line number Diff line number Diff line change
1
+ * text =auto eol =lf
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ push :
5
+ # Run on pushes to specific branches
6
+ branches :
7
+ - master
8
+ - next
9
+ - beta
10
+ - alpha
11
+ # Do not run on tags
12
+ tags-ignore :
13
+ - " *"
14
+ pull_request :
15
+ # Run on to branches with an open PR
16
+ branches :
17
+ - " *"
18
+
19
+ jobs :
20
+ test :
21
+ strategy :
22
+ matrix :
23
+ # Test with Node.js v10 (LTS), v12 (LTS), and v13 (latest)
24
+ node : [10, 12, 13]
25
+ # Test with Ubuntu and macOS
26
+ os : [ubuntu-latest, macOS-latest]
27
+ name : Node.js v${{ matrix.node }} on ${{ matrix.os }}
28
+ runs-on : ${{ matrix.os }}
29
+ steps :
30
+ - uses : actions/checkout@v2
31
+ - uses : actions/setup-node@v1
32
+ with :
33
+ node-version : ${{ matrix.node }}
34
+ # Get yarn's cache dir path
35
+ - name : Get yarn cache directory path
36
+ id : yarn-cache-dir-path
37
+ run : echo "::set-output name=dir::$(yarn cache dir)"
38
+ # Cache the above yarn cache dir
39
+ - uses : actions/cache@v1
40
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
41
+ with :
42
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
43
+ key : yarn-${{ runner.os }}-${{ runner.node }}-${{ hashFiles('**/yarn.lock') }}
44
+ restore-keys : |
45
+ yarn-${{ runner.os }}-${{ runner.node }}-
46
+ - run : node --version
47
+ - run : yarn --version
48
+ - run : git --version
49
+ - run : yarn
50
+ - run : yarn test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments