diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..2f171a9 --- /dev/null +++ b/.github/workflows/CI.yaml @@ -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 . + + - + diff --git a/shop-client/.github/workflows/CI.yaml b/shop-client/.github/workflows/CI.yaml deleted file mode 100644 index 9916efd..0000000 --- a/shop-client/.github/workflows/CI.yaml +++ /dev/null @@ -1,32 +0,0 @@ -name: CI shop client - -on: push - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Install dependencies - run: npm install - - - name: Linter - run: npm run lint - - - name: Build - run: npm run build - - dockerize: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Docker compose - uses: isbang/compose-action@v1.4.1 - with: - compose-file: './docker-compose.yml' diff --git a/shop-server/.github/workflows/CI.yml b/shop-server/.github/workflows/CI.yml deleted file mode 100644 index dfd7d53..0000000 --- a/shop-server/.github/workflows/CI.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: CI shop server - -on: push - -jobs: - dockerize: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Docker compose - uses: isbang/compose-action@v1.4.1 - with: - compose-file: "./docker-compose.yml" - down-flags: "--volumes"