Merge pull request #329 from YossiSaadi/master #95
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: CI | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
node-version: "20" | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Lint | |
run: yarn lint | |
size-limit: | |
name: Size limit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
node-version: "20" | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Size limit | |
run: NODE_OPTIONS=--openssl-legacy-provider yarn size | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
node-version: "20" | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Test | |
run: yarn test |