9 - uses: actions/checkout@v2
11 # https://github.com/actions/cache/blob/master/examples.md#node---yarn
12 - name: "Cache: Get yarn cache directory path"
13 id: yarn-cache-dir-path
14 run: echo "::set-output name=dir::$(yarn cache dir)"
16 - name: "Cache: Set up yarn cache"
17 uses: actions/cache@v2
20 path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
21 key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23 ${{ runner.os }}-yarn-
25 # https://github.com/actions/cache/blob/master/examples.md#ruby---bundler
26 - name: "Cache: Set up bundler cache"
27 uses: actions/cache@v2
30 key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
32 ${{ runner.os }}-gems-
35 uses: actions/setup-node@v1
36 with: { node-version: '12.x' }
39 uses: actions/setup-ruby@v1
40 with: { ruby-version: '2.7.1' }
42 - name: Setup dependencies
44 yarn --frozen-lockfile
45 bundle config path vendor/bundle
46 bundle install --jobs 4 --retry 3
50 - run: yarn test:smoke