Better return routing, popup when no tournaments #5
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: Test building EMS | |
on: | |
push: | |
branches: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
build-frontend: | |
name: Build Frontend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Detect changes | |
id: changed | |
uses: tj-actions/changed-files@v34 | |
with: | |
files: | | |
front-end/** | |
lib/** | |
- name: Use Node.js 18.x | |
if: steps.changed.outputs.any_changed == 'true' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install lib dependencies | |
if: steps.changed.outputs.any_changed == 'true' | |
run: | | |
npm run install:lib | |
- name: Build libs | |
if: steps.changed.outputs.any_changed == 'true' | |
run: | | |
npm run build:lib | |
- name: Install frontend dependencies | |
if: steps.changed.outputs.any_changed == 'true' | |
run: | | |
npm run install:frontend | |
- name: Build frontend | |
if: steps.changed.outputs.any_changed == 'true' | |
run: | | |
npm run build:frontend | |
build-backend: | |
name: Build Backend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Detect changes | |
id: changed | |
uses: tj-actions/changed-files@v34 | |
with: | |
files: | | |
front-end/** | |
lib/** | |
- name: Use Node.js 18.x | |
if: steps.changed.outputs.any_changed == 'true' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install lib dependencies | |
if: steps.changed.outputs.any_changed == 'true' | |
run: | | |
npm run install:lib | |
- name: Build libs | |
if: steps.changed.outputs.any_changed == 'true' | |
run: | | |
npm run build:lib | |
- name: Install backend dependencies | |
if: steps.changed.outputs.any_changed == 'true' | |
run: | | |
npm run install:backend | |
- name: Build backend | |
if: steps.changed.outputs.any_changed == 'true' | |
run: | | |
npm run build:backend |