updated readmes #260
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
# .github/workflows/lint.yml | ||
name: Lint # name of the action (displayed in the github interface) | ||
on: # event list | ||
pull_request: # on a pull request to each of these branches | ||
branches: [main] | ||
paths: | ||
- '**/*.ts' | ||
- '**/*.js' | ||
- '**/*.json' | ||
paths-ignore: | ||
- '.config/**' | ||
- '.github/**' | ||
- '.vscode/**' | ||
- 'assests/**' | ||
push: | ||
branches: [main] | ||
jobs: # list of things to do | ||
linting: | ||
name: Linting # job name (unique id) | ||
runs-on: ubuntu-latest # on which machine to run | ||
strategy: | ||
matrix: | ||
NODE_VERSION: [20.x] | ||
steps: # list of steps | ||
- name: Install NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.NODE_VERSION }} | ||
- name: Code Checkout | ||
uses: actions/checkout@v3 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- name: Cache Node.js modules | ||
id: yarn-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile --silent | ||
env: | ||
CI: true | ||
- name: Lint with Yarn | ||
run: yarn lint |