Skip to content

Added pdf upload (#77) #825

Added pdf upload (#77)

Added pdf upload (#77) #825

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 19.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install surrealdb
run: curl -sSf https://install.surrealdb.com | sh
- name: Start Database
run: screen -AmdS surreal surreal start --user root --pass pass
- run: npm ci
- run: npm run build --if-present
# test:
# runs-on: ubuntu-latest
# needs: build
# timeout-minutes: 60
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# - name: Install dependencies
# run: npm ci
# - name: Install surrealdb
# run: curl -sSf https://install.surrealdb.com | sh
# - name: Start Database
# run: screen -AmdS surreal surreal start --user root --pass pass
# - name: Add hosts to /etc/hosts
# run: sudo echo "127.0.0.1 thesisfinder-local.tu-darmstadt.de.test" | sudo tee -a /etc/hosts
# - name: Install Playwright Browsers
# run: npx playwright install --with-deps
# - name: build project
# run: npm run build
# - name: Run project
# run: screen -AmdS thesisfinder npm run dev
# - name: Run test
# run: npm run test
# - uses: actions/upload-artifact@v3
# if: always()
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30