[Don't merge] Feature/we 1714 create a new configuration for the new UI kit #1007
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
workflow_dispatch: | |
pull_request: | |
permissions: | |
contents: read | |
security-events: write | |
env: | |
NODE_OPTIONS: --max_old_space_size=4096 | |
jobs: | |
security: | |
uses: lidofinance/linters/.github/workflows/security.yml@master | |
actions: | |
uses: lidofinance/linters/.github/workflows/actions.yml@master | |
cache-deps: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Restore cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
check-types: | |
runs-on: ubuntu-latest | |
needs: cache-deps | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Restore cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Check types | |
run: yarn types | |
lint-js: | |
runs-on: ubuntu-latest | |
needs: cache-deps | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Restore cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint JS/TS | |
run: yarn lint:js | |
lint-css: | |
runs-on: ubuntu-latest | |
needs: cache-deps | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Restore cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint CSS | |
run: yarn lint:css | |
run-tests: | |
runs-on: ubuntu-latest | |
needs: cache-deps | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Restore cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run tests | |
run: yarn test | |
demo-build: | |
runs-on: ubuntu-latest | |
needs: cache-deps | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Restore cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Try to build | |
run: yarn build |