fix(ci) Fix CI for monorepo #1
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: CI | ||
on: push | ||
jobs: | ||
build-front: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Workspace shop-client | ||
run: cd shop-client | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Linter | ||
run: npm run lint | ||
- name: Build | ||
run: npm run build | ||
- name: Docker build | ||
run: docker build . | ||
build-back: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Workspace shop-server | ||
run: cd shop-server | ||
- name: Build | ||
run: ./mvnw build package | ||
- name: Docker build | ||
run: docker build . | ||
- | ||