From 08545fa6ec5ae6244fe21139fc8207697e8b6e3a Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 00:50:29 +0100 Subject: [PATCH 01/12] First test for CI --- .filesToCompile | 3 +++ .github/workflows/artifacts.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .filesToCompile create mode 100644 .github/workflows/artifacts.yml diff --git a/.filesToCompile b/.filesToCompile new file mode 100644 index 0000000..a397a43 --- /dev/null +++ b/.filesToCompile @@ -0,0 +1,3 @@ +interni/verbali/verbale_1/ +interni/verbali/verbale_2/ +interni/verbali/verbale_3/ \ No newline at end of file diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml new file mode 100644 index 0000000..751a8bc --- /dev/null +++ b/.github/workflows/artifacts.yml @@ -0,0 +1,33 @@ +name: SWE-DOCS-ARTIFACTS + +on: + push: + branches: + - master + - develop + - testing-ci + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repo content + uses: actions/checkout@v1 + + - name: Search and Compiling Latex Files + uses: Jatus93/Latex-multicompiler@master + with: + path_to_list: .filesToCompile + artifact: true + - run: tar -xzf Documents.tar.gz -C Artifacts/ + + - name: FTP Artifacts Online Deploy + uses: SamKirkland/FTP-Deploy-Action@2.0.0 + env: + FTP_SERVER: ${{ secrets.FTP_HOST }} + FTP_USERNAME: ${{ secrets.FTP_USERNAME }} + FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }} + LOCAL_DIR: Artifacts + ARGS: --transfer-all \ No newline at end of file From 5335f10ba36ce69d7a1081a1f2dd9f886cb792e7 Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 00:56:16 +0100 Subject: [PATCH 02/12] Second test CI --- .github/workflows/artifacts.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 751a8bc..57194ee 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -21,7 +21,6 @@ jobs: with: path_to_list: .filesToCompile artifact: true - - run: tar -xzf Documents.tar.gz -C Artifacts/ - name: FTP Artifacts Online Deploy uses: SamKirkland/FTP-Deploy-Action@2.0.0 @@ -29,5 +28,5 @@ jobs: FTP_SERVER: ${{ secrets.FTP_HOST }} FTP_USERNAME: ${{ secrets.FTP_USERNAME }} FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }} - LOCAL_DIR: Artifacts + LOCAL_DIR: Documents ARGS: --transfer-all \ No newline at end of file From 3ac9b28e2a75dadf028bd21c94bd73eb457a3213 Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 01:13:06 +0100 Subject: [PATCH 03/12] Third test CI --- .filesToCompile | 3 --- .github/filesToCompile | 4 ++++ .github/workflows/artifacts.yml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 .filesToCompile create mode 100644 .github/filesToCompile diff --git a/.filesToCompile b/.filesToCompile deleted file mode 100644 index a397a43..0000000 --- a/.filesToCompile +++ /dev/null @@ -1,3 +0,0 @@ -interni/verbali/verbale_1/ -interni/verbali/verbale_2/ -interni/verbali/verbale_3/ \ No newline at end of file diff --git a/.github/filesToCompile b/.github/filesToCompile new file mode 100644 index 0000000..6a9ec08 --- /dev/null +++ b/.github/filesToCompile @@ -0,0 +1,4 @@ +interni/verbali/verbale_1 +interni/verbali/verbale_2 +interni/verbali/verbale_3 +interni/verbali/verbale_4 \ No newline at end of file diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 57194ee..59912c8 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -19,7 +19,7 @@ jobs: - name: Search and Compiling Latex Files uses: Jatus93/Latex-multicompiler@master with: - path_to_list: .filesToCompile + path_to_list: .github/filesToCompile artifact: true - name: FTP Artifacts Online Deploy From fe1f12edef470bc07bcc690f3a329a197abb261d Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 01:31:21 +0100 Subject: [PATCH 04/12] Foruth test CI --- .github/filesToCompile | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/filesToCompile b/.github/filesToCompile index 6a9ec08..f45e33a 100644 --- a/.github/filesToCompile +++ b/.github/filesToCompile @@ -1,4 +1,5 @@ interni/verbali/verbale_1 interni/verbali/verbale_2 interni/verbali/verbale_3 +interni/verbali/verbale_4 interni/verbali/verbale_4 \ No newline at end of file From 489591e970df3fe5698d67b8afeb6b85e13fd136 Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 01:36:59 +0100 Subject: [PATCH 05/12] Fifth test CI --- .github/filesToCompile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/filesToCompile b/.github/filesToCompile index f45e33a..4b979d1 100644 --- a/.github/filesToCompile +++ b/.github/filesToCompile @@ -1,5 +1,4 @@ interni/verbali/verbale_1 interni/verbali/verbale_2 interni/verbali/verbale_3 -interni/verbali/verbale_4 -interni/verbali/verbale_4 \ No newline at end of file +interni/verbali/verbale_3 \ No newline at end of file From b5f5ad222d0e8b4c6aac77683c08434d3cb4033c Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 12:51:13 +0100 Subject: [PATCH 06/12] Sixth test CI --- .github/filesToCompile | 2 +- .github/workflows/artifacts.yml | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/filesToCompile b/.github/filesToCompile index 4b979d1..6a9ec08 100644 --- a/.github/filesToCompile +++ b/.github/filesToCompile @@ -1,4 +1,4 @@ interni/verbali/verbale_1 interni/verbali/verbale_2 interni/verbali/verbale_3 -interni/verbali/verbale_3 \ No newline at end of file +interni/verbali/verbale_4 \ No newline at end of file diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 59912c8..7d644df 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -1,11 +1,15 @@ -name: SWE-DOCS-ARTIFACTS +name: SWE Docs Artifacts on: push: branches: - - master - develop - testing-ci + paths: + - 'esterni/**' + - 'interni/**' + - 'template/**' + - '.github/**' jobs: build: @@ -15,6 +19,8 @@ jobs: steps: - name: Checkout repo content uses: actions/checkout@v1 + with: + - ref: develop - name: Search and Compiling Latex Files uses: Jatus93/Latex-multicompiler@master From e747b0dcd6ffc60a7f5a70d6f467ff14d381b34d Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 12:53:00 +0100 Subject: [PATCH 07/12] Fix error artifacts.yml --- .github/workflows/artifacts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 7d644df..ff6b3e3 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -20,7 +20,7 @@ jobs: - name: Checkout repo content uses: actions/checkout@v1 with: - - ref: develop + ref: develop - name: Search and Compiling Latex Files uses: Jatus93/Latex-multicompiler@master From a9dc25c0f51e4d6672961dfac00bd441e7ae73c5 Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 12:55:04 +0100 Subject: [PATCH 08/12] Fix files to compile --- .github/filesToCompile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/filesToCompile b/.github/filesToCompile index 6a9ec08..7b48d88 100644 --- a/.github/filesToCompile +++ b/.github/filesToCompile @@ -1,4 +1,3 @@ interni/verbali/verbale_1 interni/verbali/verbale_2 -interni/verbali/verbale_3 -interni/verbali/verbale_4 \ No newline at end of file +interni/verbali/verbale_3 \ No newline at end of file From 7c07a958e59d236ebb17b2cbd6f88ec6a6a45a1d Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 13:00:27 +0100 Subject: [PATCH 09/12] Fix for current branch --- .github/workflows/artifacts.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index ff6b3e3..48f728d 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -19,8 +19,8 @@ jobs: steps: - name: Checkout repo content uses: actions/checkout@v1 - with: - ref: develop + # with: + # ref: develop - name: Search and Compiling Latex Files uses: Jatus93/Latex-multicompiler@master From 970003a34255dc3d2cae621591bbcc830b67a7eb Mon Sep 17 00:00:00 2001 From: Mariano Date: Sun, 15 Dec 2019 21:36:33 +0100 Subject: [PATCH 10/12] Ottavo test CI --- .github/filesToCompile | 3 ++- .github/workflows/artifacts.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/filesToCompile b/.github/filesToCompile index 7b48d88..ab7fe65 100644 --- a/.github/filesToCompile +++ b/.github/filesToCompile @@ -1,3 +1,4 @@ interni/verbali/verbale_1 interni/verbali/verbale_2 -interni/verbali/verbale_3 \ No newline at end of file +interni/verbali/verbale_3 +interni/studio_fattibilita \ No newline at end of file diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 48f728d..f2d1bb9 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -23,7 +23,7 @@ jobs: # ref: develop - name: Search and Compiling Latex Files - uses: Jatus93/Latex-multicompiler@master + uses: Jatus93/Latex-multicompiler@v1.0 with: path_to_list: .github/filesToCompile artifact: true From 491adb1079be1f294d23785147933114133753e6 Mon Sep 17 00:00:00 2001 From: Mariano Date: Wed, 18 Dec 2019 16:32:20 +0100 Subject: [PATCH 11/12] CI test con notifiche #82 --- .github/workflows/artifacts.yml | 12 +++++++++- .github/workflows/patrol.yml | 39 +++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/patrol.yml diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index f2d1bb9..5199809 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -35,4 +35,14 @@ jobs: FTP_USERNAME: ${{ secrets.FTP_USERNAME }} FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }} LOCAL_DIR: Documents - ARGS: --transfer-all \ No newline at end of file + ARGS: --transfer-all + + - name: Slack Notification + uses: homoluctus/slatify@v2.0.1 + if: always() + with: + type: ${{ job.status }} + job_name: 'Deployment Notification' + channel: '#devops_documentazione' + username: 'Docs Deployment Patrol' + url: ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file diff --git a/.github/workflows/patrol.yml b/.github/workflows/patrol.yml new file mode 100644 index 0000000..d3fcb67 --- /dev/null +++ b/.github/workflows/patrol.yml @@ -0,0 +1,39 @@ +name: SWE Docs Patrol + +on: + pull_request: + branches: + - develop + - testing-ci + paths: + - 'esterni/**' + - 'interni/**' + - 'template/**' + - '.github/**' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repo content + uses: actions/checkout@v1 + + - name: Search and Compiles Latex Files + uses: Jatus93/Latex-multicompiler@v1.0 + with: + path_to_list: .github/filesToCompile + artifact: false + + - name: Slack Notification + uses: homoluctus/slatify@v2.0.1 + if: always() + with: + type: ${{ job.status }} + job_name: 'Pull Request Notification' + mention: 'here' + mention_if: 'failure' + channel: '#devops_documentazione' + username: 'Docs Pull Request Patrol' + url: ${{ secrets.SLACK_WEBHOOK }} From d3d9cc282e95d41260b3a1c136e31efa94601ac6 Mon Sep 17 00:00:00 2001 From: Mariano Date: Wed, 18 Dec 2019 16:51:32 +0100 Subject: [PATCH 12/12] Modifiche CI test con notifiche #82 --- .github/workflows/artifacts.yml | 2 +- .github/workflows/patrol.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 5199809..ab4a735 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -42,7 +42,7 @@ jobs: if: always() with: type: ${{ job.status }} - job_name: 'Deployment Notification' + job_name: 'PDF Artifacts updated notification' channel: '#devops_documentazione' username: 'Docs Deployment Patrol' url: ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file diff --git a/.github/workflows/patrol.yml b/.github/workflows/patrol.yml index d3fcb67..1498057 100644 --- a/.github/workflows/patrol.yml +++ b/.github/workflows/patrol.yml @@ -31,7 +31,7 @@ jobs: if: always() with: type: ${{ job.status }} - job_name: 'Pull Request Notification' + job_name: 'Verify Docs in Pull Request notification' mention: 'here' mention_if: 'failure' channel: '#devops_documentazione'