Skip to content

fix: preload responsive images (#1004) #1083

fix: preload responsive images (#1004)

fix: preload responsive images (#1004) #1083

Workflow file for this run

name: ci
on:
push:
branches:
- v0
pull_request:
branches:
- v0
jobs:
test-unit:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: checkout
uses: actions/checkout@master
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache # check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: Lint
run: yarn lint
- name: Test
run: yarn test:unit
- name: Coverage
uses: codecov/codecov-action@v3