Skip to content

chore: freshen yarn.lock #36

chore: freshen yarn.lock

chore: freshen yarn.lock #36

Workflow file for this run

name: ci
on:
push:
branches: [next]
pull_request:
branches: [next]
env:
yarn-cache-name: yarn-cache
yarn-cache-path: .yarn
jobs:
check-lockfile:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Run actions/setup-node@v3 (${{ matrix.node-version}})
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: ${{ env.yarn-cache-path }}
key: ${{ matrix.node-version }}-${{ env.yarn-cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: yarn
run: yarn --cache-folder=${{ env.yarn-cache-path }}
- name: Check yarn.lock for changes
run: git diff --quiet -- yarn.lock
format-check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Run actions/setup-node@v3 (${{ matrix.node-version}})
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: ${{ env.yarn-cache-path }}
key: ${{ matrix.node-version }}-${{ env.yarn-cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: yarn
run: yarn --cache-folder=${{ env.yarn-cache-path }} --frozen-lockfile
- name: yarn format:check
run: yarn --cache-folder=${{ env.yarn-cache-path }} format:check
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Run actions/setup-node@v3 (${{ matrix.node-version}})
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: ${{ env.yarn-cache-path }}
key: ${{ matrix.node-version }}-${{ env.yarn-cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: yarn
run: yarn --cache-folder=${{ env.yarn-cache-path }} --frozen-lockfile
- name: yarn lint
run: yarn --cache-folder=${{ env.yarn-cache-path }} lint
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Run actions/setup-node@v3 (${{ matrix.node-version}})
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: ${{ env.yarn-cache-path }}
key: ${{ matrix.node-version }}-${{ env.yarn-cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: yarn
run: yarn --cache-folder=${{ env.yarn-cache-path }} --frozen-lockfile
- name: yarn build
run: yarn --cache-folder=${{ env.yarn-cache-path }} build
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Run actions/setup-node@v3 (${{ matrix.node-version}})
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: ${{ env.yarn-cache-path }}
key: ${{ matrix.node-version }}-${{ env.yarn-cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: yarn
run: yarn --cache-folder=${{ env.yarn-cache-path }} --frozen-lockfile
- name: yarn build
run: yarn --cache-folder=${{ env.yarn-cache-path }} build # Prime cache.
- name: yarn test
run: yarn --cache-folder=${{ env.yarn-cache-path }} test