Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • collaboration
  • gh_pages
  • back_btn
  • time_machine
  • main_backup_2023
  • master
  • back_shadows
  • missing_prompt
  • light_types_backport
  • light_types
  • full_safe_width
  • language_race_condition
  • articles_lang_creation
  • obj_upload
  • pointscloud
  • animations
  • backport_upload_videos
  • backport_code_button
  • model_edit_backport
20 results

build.yml

Blame
  • build.yml 1.11 KiB
    name: Test
    on:
      push:
    concurrency: 
      group: build-${{ github.ref }}
      cancel-in-progress: true
    jobs:
      build-ui:
        name: UI
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v3
            with:
              submodules: recursive
          - uses: actions/setup-node@v3
            with:
              node-version: 16
              cache: 'npm'
          - name: install voyager dependencies
            run: (cd source/voyager && npm ci --legacy-peer-deps)
          - name: install ui dependencies
            run: npm ci && (cd source/ui && npm ci)
          - name: build UI
            run: npm run build-ui
      build-server:
        name: Server
        runs-on: ubuntu-latest
        strategy:
          matrix:
            node-version: [16, 18, 20]
        steps:
          - uses: actions/checkout@v3
            with:
              submodules: recursive
          - uses: actions/setup-node@v3
            with:
              node-version: ${{ matrix.node-version }}
              cache: 'npm'
          - name: install
            run: npm ci && (cd source/server && npm ci)
          - name: test
            run: (cd source/server && npm test)
          - name: build
            run:  npm run build-server