Content(nodejs loaders
)
#486
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: Pull Request Checks | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
quality: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Biome | |
uses: biomejs/setup-biome@v2 | |
with: | |
version: latest | |
- name: Run Biome | |
run: biome ci . | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Restore Cache | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
~/.npm | |
.next/cache | |
.turbo/cache | |
node_modules/.cache | |
key: cache-${{ hashFiles('package-lock.json') }}- | |
restore-keys: cache- | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install NPM packages | |
run: npm ci | |
- name: Build | |
run: npx turbo build | |
- name: Save Cache | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
~/.npm | |
.next/cache | |
.turbo/cache | |
node_modules/.cache | |
key: cache-${{ hashFiles('package-lock.json') }} | |
unit-test: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Restore Cache | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
~/.npm | |
.next/cache | |
.turbo/cache | |
node_modules/.cache | |
key: cache-${{ hashFiles('package-lock.json') }}- | |
restore-keys: cache- | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install NPM packages | |
run: npm ci | |
- name: Run Unit Tests | |
run: npx turbo test | |
- name: Save Cache | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
~/.npm | |
.next/cache | |
.turbo/cache | |
node_modules/.cache | |
key: cache-${{ hashFiles('package-lock.json') }} |