Skip to content

New strategies

New strategies #836

Workflow file for this run

name: Lint Code Base
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.15.0] # Adjust node version as necessary
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Enable Corepack
run: corepack enable
- name: Prepare Yarn 4.9.1
run: corepack prepare yarn@4.9.1 --activate
- name: Cache Yarn
uses: actions/cache@v3
with:
path: |
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: make install
env:
YARN_ENABLE_HARDENED_MODE: 0
- name: Lint interface
run: yarn lint
working-directory: ./interface
- name: Lint server
run: yarn lint
working-directory: ./server