chore(next): DEVXP-2682: centralize error messages #98
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 (v-next) | |
on: | |
pull_request: | |
paths: | |
- 'next/**' # Only run if files in next/ directory change | |
- '.github/workflows/build-next.yml' # Also run if this workflow file changes | |
jobs: | |
dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Initialize submodules | |
run: git submodule update --init | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: 'next/.nvmrc' | |
cache: 'npm' | |
- name: Cache v0 dependencies | |
uses: actions/cache@v3 | |
id: cache-v0 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-npm-next-v0-${{ hashFiles('package-lock.json') }} | |
- name: Install v0 dependencies | |
if: steps.cache-v0.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Cache PNPM dependencies | |
uses: actions/cache@v3 | |
id: cache-next | |
with: | |
path: next/node_modules | |
key: ${{ runner.os }}-pnpm-next-${{ hashFiles('next/pnpm-lock.yaml') }} | |
- name: Install dependencies | |
if: steps.cache-next.outputs.cache-hit != 'true' | |
run: cd next && pnpm install | |
test: | |
runs-on: ubuntu-latest | |
needs: [dependencies] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: 'next/.nvmrc' | |
- name: Get cached v0 dependencies | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-npm-next-v0-${{ hashFiles('package-lock.json') }} | |
- name: Get cached PNPM dependencies | |
uses: actions/cache@v3 | |
with: | |
path: next/node_modules | |
key: ${{ runner.os }}-pnpm-next-${{ hashFiles('next/pnpm-lock.yaml') }} | |
- name: Run lint and type checks | |
run: cd next && pnpm check | |
- name: Tests | |
run: cd next && pnpm test | |
- name: v0 Tests | |
run: cd next && pnpm run test:v0 || true |