Skip to content

nightly

nightly #603

Workflow file for this run

# This workflow will build a Java project with Ant
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant
name: nightly
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Daily at midnight
schedule:
- cron: '0 0 * * *'
permissions:
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Because of scheduled runs, by default run on default branch
with:
path: workspace/coral
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Versions (node / npm / yarn / pnpm)
run: |
node -v
npm -v || true
yarn -v || true
pnpm -v || true
ls -la
echo "Lockfiles:"
ls -la package-lock.json yarn.lock pnpm-lock.yaml 2>/dev/null || true
- name: Install node libraries
working-directory: workspace
run: |
cd coral
npm install
npm run build
- name: Show resolved deps (npm lockfile)
working-directory: workspace/coral
if: hashFiles('package-lock.json') != ''
run: node -e "const l=require('./package-lock.json'); console.log('lockfileVersion:', l.lockfileVersion); console.log('packages count:', Object.keys(l.packages||{}).length);"
- name: npm ls (top-level)
working-directory: workspace/coral
run: npm ls --depth=0
- name: npm ls (full tree, big!)
working-directory: workspace/coral
run: npm ls --all
- name: Run CORAL tests
working-directory: workspace/coral
run: |
npm run test
if [ -f out/.failed ]; then exit 1; fi