From 69835cefffc70eb72d5033060d4ae29a685af08b Mon Sep 17 00:00:00 2001 From: lezhdz98 Date: Wed, 8 Jan 2025 13:20:01 -0600 Subject: [PATCH 1/6] Create CI_frontend.yml --- .github/workflows/CI_frontend.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/CI_frontend.yml diff --git a/.github/workflows/CI_frontend.yml b/.github/workflows/CI_frontend.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/workflows/CI_frontend.yml @@ -0,0 +1 @@ + From 32daa70b68408a6f86566e2e7b261f712651da1d Mon Sep 17 00:00:00 2001 From: lezhdz98 Date: Wed, 8 Jan 2025 13:32:07 -0600 Subject: [PATCH 2/6] Update CI_frontend.yml --- .github/workflows/CI_frontend.yml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/CI_frontend.yml b/.github/workflows/CI_frontend.yml index 8b13789..85302b1 100644 --- a/.github/workflows/CI_frontend.yml +++ b/.github/workflows/CI_frontend.yml @@ -1 +1,42 @@ +name: "React Frontend CI" +# events + +on: + push: + branches:["main","develop"] + # paths + paths: + - 'frontend/**' + pull_request: + branches:["main","develop"] + # paths + paths: + - 'frontend/**' + +env: + node_version: 22.x +defaults: + run: + working-directory: ./frontend + +jobs: + build: #first job + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4.1.7 #action + + - name: Use Node.js ${{env.node_version}} + uses: actions/setup-node@v4.0.3 + with: + node-version: ${{env.node_version}} + cache: 'npm' + cache-dependency-path: './frontend/package-lock.json' + + - name: Run npm clean install + uses: npm ci + + - run: npm run build --if-present + + From 3c62f01e750f1806d7174e3e802ccf6301386d02 Mon Sep 17 00:00:00 2001 From: lezhdz98 Date: Wed, 8 Jan 2025 13:34:10 -0600 Subject: [PATCH 3/6] Update README.md --- frontend/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/README.md b/frontend/README.md index 58beeac..e1c9cea 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -68,3 +68,6 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d ### `npm run build` fails to minify This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) + + +test From 0141f4cc78cb25962676eab49cca1f74de2b2a95 Mon Sep 17 00:00:00 2001 From: lezhdz98 Date: Wed, 8 Jan 2025 13:38:11 -0600 Subject: [PATCH 4/6] Update CI_frontend.yml --- .github/workflows/CI_frontend.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/CI_frontend.yml b/.github/workflows/CI_frontend.yml index 85302b1..ac43245 100644 --- a/.github/workflows/CI_frontend.yml +++ b/.github/workflows/CI_frontend.yml @@ -39,4 +39,24 @@ jobs: - run: npm run build --if-present + test: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4.1.7 #action + + - name: Use Node.js ${{env.node_version}} + uses: actions/setup-node@v4.0.3 + with: + node-version: ${{env.node_version}} + cache: 'npm' + cache-dependency-path: './frontend/package-lock.json' + + - name: Run npm clean install + uses: npm ci + + - run: npm test + + + From 58ba886a5ce2ce2c5945fb5b2100710a8d2d6d0f Mon Sep 17 00:00:00 2001 From: lezhdz98 Date: Wed, 8 Jan 2025 13:41:28 -0600 Subject: [PATCH 5/6] Create CI_backend.yml --- .github/workflows/CI_backend.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/CI_backend.yml diff --git a/.github/workflows/CI_backend.yml b/.github/workflows/CI_backend.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/workflows/CI_backend.yml @@ -0,0 +1 @@ + From 88be31aba93513468e97396fbb29bdcd05513ab1 Mon Sep 17 00:00:00 2001 From: lezhdz98 Date: Wed, 8 Jan 2025 13:52:40 -0600 Subject: [PATCH 6/6] Update CI_backend.yml --- .github/workflows/CI_backend.yml | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/CI_backend.yml b/.github/workflows/CI_backend.yml index 8b13789..daa604d 100644 --- a/.github/workflows/CI_backend.yml +++ b/.github/workflows/CI_backend.yml @@ -1 +1,41 @@ +name: "Java Backend CI" + +# events +on: + push: + branches:["main","develop"] + # paths + paths: + - 'backend/**' + pull_request: + branches:["main","develop"] + # paths + paths: + - 'backend/**' + +env: + java_version: 17 +defaults: + run: + working-directory: ./backend + +jobs: + build: #first job + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 #action + + - name: Use java ${{env.java_version}} + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + + - name: Build with Gradle + run: ./gradlew +