@@ -15,46 +15,43 @@ jobs:
1515 strategy :
1616 matrix :
1717 node : [12, 14, 16]
18+
19+ name : Node v${{ matrix.node }}
1820 steps :
19- - uses : actions/checkout@master
20- - name : Setup Node
21- uses : actions/setup-node@v1
22- with :
23- node-version : ${{ matrix.node }}
24- - name : Get yarn cache directory path
25- id : yarn-cache-dir-path
26- run : echo "::set-output name=dir::$(yarn cache dir)"
27- - uses : actions/cache@v1
28- id : yarn-cache
29- with :
30- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
31- key : ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('**/yarn.lock') }}
32- restore-keys : |
33- ${{ runner.os }}-${{ matrix.node }}-yarn-
34-
35- - name : Install Playwright
36- uses : microsoft/playwright-github-action@v1
37-
38- - name : Yarn install
39- run : yarn
40- - name : Run JavaScript Tests
41- run : yarn run test
21+ - uses : actions/checkout@master
22+
23+ - name : Setup Node v${{ matrix.node }}
24+ uses : actions/setup-node@v2
25+ with :
26+ node-version : ${{ matrix.node }}
27+ cache : ' yarn'
28+
29+ - name : Install Playwright
30+ uses : microsoft/playwright-github-action@v1
31+
32+ - name : Yarn install
33+ run : yarn
34+
35+ - name : Run JavaScript Tests
36+ run : yarn run test
37+
4238
4339 ruby_test :
4440 name : Ruby Test Action
4541 runs-on : ubuntu-latest
4642 strategy :
4743 matrix :
48- ruby-version : [2.7, '3.0', 3.1]
44+ ruby : [2.7, '3.0', 3.1]
4945
46+ name : Ruby v${{ matrix.ruby }}
5047 steps :
51- - uses : actions/checkout@master
48+ - uses : actions/checkout@master
5249
53- - name : Set up Ruby ${{ matrix.ruby-version }}
54- uses : ruby/setup-ruby@v1
55- with :
56- ruby-version : ${{ matrix.ruby-version }}
57- bundler-cache : true
50+ - name : Set up Ruby v ${{ matrix.ruby }}
51+ uses : ruby/setup-ruby@v1
52+ with :
53+ ruby-version : v ${{ matrix.ruby }}
54+ bundler-cache : true
5855
59- - name : Run ruby tests
60- run : bundle exec rake test_ruby
56+ - name : Run ruby tests
57+ run : bundle exec rake test_ruby
0 commit comments