Skip to content

hopefully fix workflows #25

hopefully fix workflows

hopefully fix workflows #25

name: Lint and Check Format Workflow
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
package: ["web", "stores", "pools", "math"]
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
scope: '@leapwallet'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.OS }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-${{ matrix.node-version }}-
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint ${{ matrix.package }} package
run: yarn lint --filter=${{ matrix.package }}