temp #615
Workflow file for this run
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: Check PR | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, reopened, synchronize, ready_for_review] | |
push: | |
branches: | |
- staging | |
env: | |
NODE_VERSION: 18 | |
jobs: | |
testAll: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Cache dependencies | |
id: node-modules-cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
if: steps.node-modules-cache.outputs.cache-hit != 'true' | |
- name: Test modifiers | |
run: yarn testModifiers | |
- name: Test presets | |
run: yarn testPresets | |
- name: Lint with ESLint | |
run: yarn eslint | |
- name: Format with prettier | |
run: yarn prettierCheck |