Skip to content

feat: update next.js to latest version and other dep upgrades #48

feat: update next.js to latest version and other dep upgrades

feat: update next.js to latest version and other dep upgrades #48

Workflow file for this run

name: Lint Build Test
on:
pull_request:
branches:
- main
paths:
- 'backend/**'
- 'frontend/**'
- '.github/workflows/**'
jobs:
lint-build-frontend:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.changed_files != '0' && (contains(github.event.pull_request.changed_files, 'frontend/') || contains(github.event.pull_request.changed_files, '.github/workflows/')) }}
defaults:
run:
working-directory: './frontend'
env:
NEXT_PUBLIC_UMBRACO_BASE_URL: ${{ secrets.NEXT_PUBLIC_UMBRACO_BASE_URL }}
NEXT_PUBLIC_SITE_URL: ${{ secrets.NEXT_PUBLIC_SITE_URL }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: './frontend/.nvmrc'
- run: npm install
- run: npm run lint
- run: npm run build
lint-build-test-backend:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.changed_files != '0' && (contains(github.event.pull_request.changed_files, 'backend/') || contains(github.event.pull_request.changed_files, '.github/workflows/')) }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- run: dotnet restore
- run: dotnet format --verify-no-changes --verbosity diagnostic
- run: dotnet build
- run: dotnet test