mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 13:34:06 +01:00
31 lines
790 B
YAML
31 lines
790 B
YAML
name: Build CI
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build:
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
|
|
- name: Ci caching
|
|
uses: actions/cache@v4
|
|
id: ci-cache
|
|
with:
|
|
path: |
|
|
~/.npm
|
|
${{ github.workspace }}/.next/cache
|
|
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
|
|
- run: npm ci
|
|
if: steps.ci-cache.outputs.cache-hit != 'true'
|
|
|
|
- name: Run build
|
|
run: npm run build --if-present
|