Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Bump eslint from 8.37.0 to 8.38.0 #288

Bump eslint from 8.37.0 to 8.38.0

Bump eslint from 8.37.0 to 8.38.0 #288

Workflow file for this run

# This workflow will do a clean install of node dependencies and run tests
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches: ['*']
pull_request:
branches: [main]
jobs:
lint:
name: Static code analysis
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache .yarn/cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn --immutable
env:
HUSKY: 0
- name: Run tests
run: yarn lint
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache .yarn/cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn --immutable
env:
HUSKY: 0
- name: Prettier
run: yarn prettier
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache .yarn/cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn --immutable
env:
HUSKY: 0
- name: Build
run: yarn build
- name: Run tests
run: yarn run
working-directory: test