Made seach by topics page as the landing page #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install frontend dependencies | |
run: cd frontend && npm install | |
- name: Build frontend | |
run: cd frontend && npm run build | |
- name: Install backend dependencies | |
run: cd backend && npm install | |
- name: Test start backend server | |
run: | | |
cd backend | |
npm install | |
timeout 1m npm run start || true |