Cache divisions data for 1 hour #46
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: lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- develop | |
env: | |
NODE_OPTIONS: --max-old-space-size=8192 | |
jobs: | |
lint: | |
name: Run linter for Node ${{ matrix.node }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [18, lts/*, latest] | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
- name: Setup node env π | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
cache: "yarn" | |
- name: Install dependencies βπ» | |
run: yarn install --immutable --inline-builds | |
- name: Copy .env.example to .env | |
run: cp .env.example .env | |
- name: Run linter π | |
run: yarn lint |