From 5d8eab93d412590c280777eb2c0978a6a39da968 Mon Sep 17 00:00:00 2001 From: jeanz6 <49223785+jeanz6@users.noreply.github.com> Date: Tue, 8 Feb 2022 10:42:31 +0100 Subject: [PATCH 1/5] FIRST GITHUB ACTION --- .github/workflow/frontend.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflow/frontend.yml diff --git a/.github/workflow/frontend.yml b/.github/workflow/frontend.yml new file mode 100644 index 0000000..e11a78d --- /dev/null +++ b/.github/workflow/frontend.yml @@ -0,0 +1,48 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Check out repository code + uses: actions/checkout@v2 + + # load repo into workingfolder + - name: load repo into workingfolder + uses: actions/download-artifact@v2 + with: + name: my-download + path: my-nice-download + # print app.js on console + - name: print app.js + run: | + cat src/frontend.app.js + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From ed489ca3ecfcebd97f21d0b8fc43815e1a270997 Mon Sep 17 00:00:00 2001 From: jeanz6 <49223785+jeanz6@users.noreply.github.com> Date: Tue, 8 Feb 2022 10:53:02 +0100 Subject: [PATCH 2/5] create frontend.yaml --- .github/workflows/frontend.yml | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/frontend.yml diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 0000000..e11a78d --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,48 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Check out repository code + uses: actions/checkout@v2 + + # load repo into workingfolder + - name: load repo into workingfolder + uses: actions/download-artifact@v2 + with: + name: my-download + path: my-nice-download + # print app.js on console + - name: print app.js + run: | + cat src/frontend.app.js + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 8ccc9f02081b0708de065420e46fbd92305f1642 Mon Sep 17 00:00:00 2001 From: jeanz6 <49223785+jeanz6@users.noreply.github.com> Date: Tue, 8 Feb 2022 10:56:58 +0100 Subject: [PATCH 3/5] Update frontend.yml --- .github/workflows/frontend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index e11a78d..1e37291 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -31,7 +31,7 @@ jobs: uses: actions/download-artifact@v2 with: name: my-download - path: my-nice-download + path: src/ # print app.js on console - name: print app.js run: | From f2dc1562ea7518f2baceb27bc1632f144d804944 Mon Sep 17 00:00:00 2001 From: jeanz6 <49223785+jeanz6@users.noreply.github.com> Date: Tue, 8 Feb 2022 11:04:06 +0100 Subject: [PATCH 4/5] againg --- .github/workflows/frontend.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 1e37291..0cc1508 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -27,11 +27,14 @@ jobs: uses: actions/checkout@v2 # load repo into workingfolder - - name: load repo into workingfolder + - name: download to working dir uses: actions/download-artifact@v2 with: - name: my-download - path: src/ + name: my-artifact + - name: Display structure of downloaded files + run: ls -R + + # print app.js on console - name: print app.js run: | From 4d0a391f209a0de6b35dbb9f996cf5135faaa13e Mon Sep 17 00:00:00 2001 From: DVDope <66468274+DVDope@users.noreply.github.com> Date: Fri, 4 Mar 2022 11:29:01 +0100 Subject: [PATCH 5/5] added Java file for documentation --- src/backend/test_docs.java | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/backend/test_docs.java diff --git a/src/backend/test_docs.java b/src/backend/test_docs.java new file mode 100644 index 0000000..09212c2 --- /dev/null +++ b/src/backend/test_docs.java @@ -0,0 +1,8 @@ +public class Main { + int x = 5; + + public static void main(String[] args) { + Main myObj = new Main(); + System.out.println(myObj.x); + } +} \ No newline at end of file