Skip to content

Commit

Permalink
fix(ci) Fix CI for monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Henry committed Jan 18, 2024
1 parent 32405b9 commit e9a2b52
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 49 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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 .

-

32 changes: 0 additions & 32 deletions shop-client/.github/workflows/CI.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions shop-server/.github/workflows/CI.yml

This file was deleted.

0 comments on commit e9a2b52

Please sign in to comment.