fixup! Feat: Example NextJS app with app router #DS-1393 #10004
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: Code Quality Checks | |
on: | |
push: | |
schedule: | |
- cron: '0 9 * * *' # every day at 9:00 | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
NX_BRANCH: ${{ github.event.number || github.ref_name }} | |
NX_VERBOSE_LOGGING: true | |
NX_NO_CLOUD: true | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Fetch Git history | |
run: git fetch --no-tags --depth=50 origin main | |
- name: Install dependencies | |
uses: bahmutov/[email protected] | |
with: | |
useRollingCache: true | |
install-command: yarn --immutable | |
- name: Build | |
run: yarn build | |
- name: Check code-style format | |
run: yarn format:check | |
- name: Lint | |
run: yarn lint | |
- name: Test | |
run: yarn test | |
- name: Check Types | |
run: yarn types | |
- name: Publish Web Package Code Coverage | |
# When Nx hits its cloud cache, there is no generated coverage to sent, e.g. do not let this crash | |
if: ${{ hashFiles('./packages/web/.coverage/lcov.info') != '' }} | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./packages/web/.coverage/lcov.info | |
flag-name: web | |
carryforward: web-react, web-twig, analytics, design-tokens, icons, common, codemods, form-validations | |
- name: Publish Web-React Package Code Coverage | |
# When Nx hits its cloud cache, there is no generated coverage to sent, e.g. do not let this crash | |
if: ${{ hashFiles('./packages/web-react/.coverage/lcov.info') != '' }} | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./packages/web-react/.coverage/lcov.info | |
flag-name: web-react | |
carryforward: web, web-twig, analytics, design-tokens, icons, common, codemods, form-validations | |
- name: Publish Analytics Package Code Coverage | |
# When Nx hits its cloud cache, there is no generated coverage to sent, e.g. do not let this crash | |
if: ${{ hashFiles('./packages/analytics/.coverage/lcov.info') != '' }} | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./packages/analytics/.coverage/lcov.info | |
flag-name: analytics | |
carryforward: web, web-react, web-twig, design-tokens, icons, common, codemods, form-validations |