ci: Optimize workflows execution time and bump actions to latest #308
Workflow file for this run
This file contains hidden or 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: 🔍 Code Quality Checks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| circular-deps: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛒 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🔧 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: 📦 Install dependencies | |
| run: yarn install --immutable | |
| - name: 🔄 Find circular dependencies | |
| working-directory: packages/react-native-sortables | |
| run: yarn circular-dependency-check | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛒 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🔧 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: 📦 Install dependencies | |
| run: yarn install --immutable | |
| - name: 🔎 Run typecheck | |
| run: yarn typecheck | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛒 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🔧 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: 📦 Install dependencies | |
| run: yarn install --immutable | |
| - name: 🧹 Run lint | |
| run: yarn lint | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛒 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🔧 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: 📦 Install dependencies | |
| run: yarn install --immutable | |
| - name: 🎨 Run Prettier check | |
| run: yarn format:check | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛒 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🔧 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: 📦 Install dependencies | |
| run: yarn install --immutable | |
| - name: 🧪 Run tests | |
| run: yarn test |