Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions .github/workflows/main.yml

This file was deleted.

82 changes: 81 additions & 1 deletion .github/workflows/world.yml
Original file line number Diff line number Diff line change
@@ -1 +1,81 @@

name: Java CI
on: push
env: # Set the secret as an input
docker_username: ${{ github.actor }}
docker_password: ${{ secrets.GITHUB_TOKEN }}
GIT_COMMIT: ${{ github.sha }}
jobs:
Clone-down:
name: Clone down repo
runs-on: ubuntu-latest
container: gradle:6-jdk11
steps:
- uses: actions/checkout@v3
- name: Upload Repo
uses: actions/upload-artifact@v3
with:
name: code
path: .
Build:
runs-on: ubuntu-latest
needs: Clone-down
container: gradle:6-jdk11
steps:
- name: Download code
uses: actions/download-artifact@v3
with:
name: code
path: .
- name: Build with Gradle
run: chmod +x ci/build-app.sh && ci/build-app.sh
- name: Test with Gradle
run: chmod +x ci/unit-test-app.sh && ci/unit-test-app.sh
- name: Upload Repo
uses: actions/upload-artifact@v3
with:
name: code
path: .
- name: Upload Jar
uses: actions/upload-artifact@v3
with:
name: Jar
path: app/build/libs/app-0.1-all.jar
Docker-image:
runs-on: ubuntu-latest
needs: [Build]
permissions:
packages: write
steps:
- name: Download code
uses: actions/download-artifact@v3
with:
name: code
path: .
- name: build docker
run: chmod +x ci/build-docker.sh && ci/build-docker.sh
- name: push docker
run: chmod +x ci/push-docker.sh && ci/push-docker.sh
#Add job named Component-test
Component-test:
runs-on: ubuntu-latest
needs: Docker-image
steps:
- name: Download code
uses: actions/download-artifact@v3
with:
name: code
path: .
- name: Execute component test
run: chmod +x ci/component-test.sh && ci/component-test.sh
#Add another job named Performance-test
Performance-test:
runs-on: ubuntu-latest
needs: Docker-image
steps:
- name: Download code
uses: actions/download-artifact@v3
with:
name: code
path: .
- name: Execute performance test
run: chmod +x ci/performance-test.sh && ci/performance-test.sh