Skip to content

Commit

Permalink
Update visual regression test workflow
Browse files Browse the repository at this point in the history
 - Node version set to 12 to match Jenkins
 - Remove operating system from cache keys
 - Bundle flag updated to use `--deployment`
  • Loading branch information
injms committed Mar 24, 2021
1 parent 8363a86 commit 2d3a860
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/visual-regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ jobs:
- uses: ruby/setup-ruby@v1
- uses: actions/setup-node@v1
with:
node-version: "14"
node-version: "12"
- name: Check for cached Ruby gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gems-
key: bundle-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: bundle
- name: Get Yarn cache directory path
id: yarn-cache-directory-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Check for cached Yarn dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-directory-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- run: bundle install --jobs 4 --retry 3 --path vendor/bundle
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-
- run: bundle install --jobs 4 --retry 3 --deployment
- run: yarn install --frozen-lockfile
- uses: percy/[email protected]
with:
Expand Down

0 comments on commit 2d3a860

Please sign in to comment.