* tests: fix float problems and PAT problem * extend CONTRIBUTING.md * extend build documentation, add GH action, fix build on MacOS * fix build on Vercel * update .gitignore and CONTRIBUTING.md * fix all tests * add backend tests to CI * make e2e tests work * add debug log to e2e test * ignore copied tests in CI
38 lines
836 B
YAML
38 lines
836 B
YAML
name: Basic Build
|
|
|
|
on:
|
|
workflow_dispatch: # Allows you to run this manually from the Actions tab
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
execute:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: Install Yarn
|
|
run: npm install -g yarn
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install and Build
|
|
run: |
|
|
chmod +x ./vercel-preparation.sh
|
|
./vercel-preparation.sh
|
|
(cd ./backend/ && npm install)
|
|
(cd ./frontend/frontend/ && yarn install && yarn build-trends)
|
|
|
|
- name: Run Backend Tests
|
|
run: |
|
|
(cd ./backend/ && npm test)
|