Skip to content

chore(deps): bump actions/checkout from 2 to 4 #49

chore(deps): bump actions/checkout from 2 to 4

chore(deps): bump actions/checkout from 2 to 4 #49

Workflow file for this run

name: Main
on:
pull_request:
push:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14]
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Load yarn cache
uses: actions/[email protected]
id: yarn-cache
with:
path: ./node_modules
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-cache-
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
- name: Lint code
run: yarn lint
- name: Check types
run: yarn lint:types
- name: Format other files
run: yarn lint:format --check
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14]
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Load yarn cache
uses: actions/[email protected]
id: yarn-cache
with:
path: ./node_modules
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-cache-
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
- name: Run tests
run: yarn test