From 5a80b7bd5b9058acf3b27ed63dae973b572c7e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20G=C3=A1rate?= Date: Mon, 21 Jun 2021 23:19:08 +0200 Subject: [PATCH 01/11] Create blank.yml --- .github/workflows/blank.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 000000000..6a2b91b3c --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # 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 + - uses: actions/checkout@v2 + + # 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 f1538f7c88fdbb74e5da4940b1c39b00fd7433bc Mon Sep 17 00:00:00 2001 From: Javi Garate Date: Mon, 21 Jun 2021 23:22:58 +0200 Subject: [PATCH 02/11] deleted sections --- .github/workflows/blank.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 6a2b91b3c..59324359f 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -1,6 +1,4 @@ -# This is a basic workflow to help you get started with Actions - -name: CI +name: Tester # Controls when the action will run. on: @@ -16,19 +14,15 @@ on: # 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: + test: # The type of runner that the job will run on - runs-on: ubuntu-latest + runs-on: fjgarate/kratos-tester # 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 - uses: actions/checkout@v2 - # 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: | From 18ad0f16c7f0d944a53a519b97134f78830a257d Mon Sep 17 00:00:00 2001 From: Javi Garate Date: Mon, 21 Jun 2021 23:41:11 +0200 Subject: [PATCH 03/11] change container --- .github/workflows/blank.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 59324359f..415b29453 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -16,7 +16,10 @@ jobs: # This workflow contains a single job called "build" test: # The type of runner that the job will run on - runs-on: fjgarate/kratos-tester + runs-on: ubuntu-latest + + container: + image: fjgarate/kratos-tester:latest # Steps represent a sequence of tasks that will be executed as part of the job steps: From 930af1a6e63c460a21ce73cdc3913dfbc4506e32 Mon Sep 17 00:00:00 2001 From: Javi Garate Date: Mon, 21 Jun 2021 23:43:46 +0200 Subject: [PATCH 04/11] ls --- .github/workflows/blank.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 415b29453..7a43db063 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -31,3 +31,4 @@ jobs: run: | echo Add other actions to build, echo test, and deploy your project. + ls From 64057c51b07f5c5ee86a734ff61b6260712faab5 Mon Sep 17 00:00:00 2001 From: Javi Garate Date: Mon, 21 Jun 2021 23:55:39 +0200 Subject: [PATCH 05/11] agrrrr --- .github/workflows/blank.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 7a43db063..4dcf696e5 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -31,4 +31,6 @@ jobs: run: | echo Add other actions to build, echo test, and deploy your project. + pwd + cd .. ls From 0e39eb6efc77d9d58d0491b0b780d066735b78c1 Mon Sep 17 00:00:00 2001 From: Javi Garate Date: Tue, 22 Jun 2021 00:03:05 +0200 Subject: [PATCH 06/11] launch script tester --- .github/workflows/blank.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 4dcf696e5..eae51bd32 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -26,11 +26,15 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - # Runs a set of commands using the runners shell - - name: Run a multi-line script + # Copy problemtype to gid and copy exec + - name: Move kratos where it should be run: | - echo Add other actions to build, - echo test, and deploy your project. - pwd - cd .. - ls + mv ./kratos.gid /gid/problemtypes/ + mkdir /gid/problemtypes/kratos.gid/exec/Kratos + mv /tmp/KratosRelease/* /gid/problemtypes/kratos.gid/exec/Kratos + + # start the tester thing + - name: Tester + run: | + cd /app + npm start From 986a7f9910ca209a7497cb3143ee1d9f8700a46c Mon Sep 17 00:00:00 2001 From: Javi Garate Date: Tue, 22 Jun 2021 00:17:31 +0200 Subject: [PATCH 07/11] env --- .github/workflows/blank.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index eae51bd32..bc50aa84b 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -18,6 +18,9 @@ jobs: # The type of runner that the job will run on runs-on: ubuntu-latest + env: + GITHUB_ACTION: true + container: image: fjgarate/kratos-tester:latest From 98b0c5722c70bf088beb5f64da5bccc15d4a4411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20G=C3=A1rate?= Date: Sat, 27 Aug 2022 17:08:55 +0200 Subject: [PATCH 08/11] del previous --- .github/workflows/blank.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index bc50aa84b..05926bc3a 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -32,6 +32,8 @@ jobs: # Copy problemtype to gid and copy exec - name: Move kratos where it should be run: | + rm -rf /gid/problemtypes/ + mkdir /gid/problemtypes mv ./kratos.gid /gid/problemtypes/ mkdir /gid/problemtypes/kratos.gid/exec/Kratos mv /tmp/KratosRelease/* /gid/problemtypes/kratos.gid/exec/Kratos From cd9800cfbb8f0ee01b8d186df395023b60c9d8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20G=C3=A1rate?= Date: Sat, 27 Aug 2022 17:13:03 +0200 Subject: [PATCH 09/11] install python packages --- .github/workflows/blank.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 05926bc3a..6de2d2f78 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -35,8 +35,7 @@ jobs: rm -rf /gid/problemtypes/ mkdir /gid/problemtypes mv ./kratos.gid /gid/problemtypes/ - mkdir /gid/problemtypes/kratos.gid/exec/Kratos - mv /tmp/KratosRelease/* /gid/problemtypes/kratos.gid/exec/Kratos + python3 -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.1.3 # start the tester thing - name: Tester From ac351d79e2b20334ef7ab68598e947a2d0871a05 Mon Sep 17 00:00:00 2001 From: jginternational Date: Mon, 29 Aug 2022 16:47:58 +0200 Subject: [PATCH 10/11] workspace --- .github/workflows/blank.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 6de2d2f78..adf6fdaf8 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -34,8 +34,7 @@ jobs: run: | rm -rf /gid/problemtypes/ mkdir /gid/problemtypes - mv ./kratos.gid /gid/problemtypes/ - python3 -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.1.3 + mv $GITHUB_WORKSPACE/kratos.gid /gid/problemtypes/ # start the tester thing - name: Tester From 33884b41d5e8f1cb6ac2de972ac0e01509cda25c Mon Sep 17 00:00:00 2001 From: Javi Garate Date: Tue, 30 Aug 2022 14:24:40 +0200 Subject: [PATCH 11/11] tester --- .github/workflows/{blank.yml => tester.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{blank.yml => tester.yml} (100%) diff --git a/.github/workflows/blank.yml b/.github/workflows/tester.yml similarity index 100% rename from .github/workflows/blank.yml rename to .github/workflows/tester.yml