From a382eb81f340ab685412847aeae83820517b37f0 Mon Sep 17 00:00:00 2001 From: naveedkhan8067 <38525837+naveedkhan8067@users.noreply.github.com> Date: Sun, 10 Dec 2023 21:35:42 +0100 Subject: [PATCH 1/5] test other repo checkout --- .github/workflows/hello-world.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 6ce1d83..135601e 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -59,6 +59,30 @@ jobs: # env: # NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} + test: + name: "test job" + runs-on: windows-latest + steps: + - name: 📚 checkout + uses: actions/checkout@v4 + with: + path: PLE_DEVOPS + + - name: Checkout private tools + uses: actions/checkout@v4 + with: + repository: Varient_Basic + token: ${{ secrets.ACCESS_TOKEN_GITHUB }} + path: Varient_Basic + + - name: Displat Root By Dir + run: | + dir + + - name: Displat Workspace + run: | + echo %GITHUB_WORKSPACE% + linux: name: "Linux Varient" runs-on: ubuntu-latest From 2f2948ce29e116cb3326c956af561b7fbab1b1fc Mon Sep 17 00:00:00 2001 From: naveedkhan8067 <38525837+naveedkhan8067@users.noreply.github.com> Date: Sun, 10 Dec 2023 21:37:51 +0100 Subject: [PATCH 2/5] Update hello-world.yml --- .github/workflows/hello-world.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 135601e..56faf24 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -63,15 +63,15 @@ jobs: name: "test job" runs-on: windows-latest steps: - - name: 📚 checkout + - name: 📚 Checkout PLE_DEVOPS uses: actions/checkout@v4 with: path: PLE_DEVOPS - - name: Checkout private tools + - name: Checkout Varient_Basic uses: actions/checkout@v4 with: - repository: Varient_Basic + repository: naveedkhan8067/Varient_Basic token: ${{ secrets.ACCESS_TOKEN_GITHUB }} path: Varient_Basic From 3e07b5b76e1ad7ff281235caac325fa9ddfc3829 Mon Sep 17 00:00:00 2001 From: naveedkhan8067 <38525837+naveedkhan8067@users.noreply.github.com> Date: Sun, 10 Dec 2023 21:48:32 +0100 Subject: [PATCH 3/5] Update hello-world.yml --- .github/workflows/hello-world.yml | 56 ++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 56faf24..57ba991 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -13,7 +13,7 @@ on: # - main jobs: - #Existing release job commented, need to be modifyed publishing w.r.t varients + #Existing release job for npm package commented, need to be modifyed publishing w.r.t varients # release: # name: "publish component" # runs-on: windows-latest @@ -59,6 +59,7 @@ jobs: # env: # NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} + #Test job to checkout several repos test: name: "test job" runs-on: windows-latest @@ -75,14 +76,61 @@ jobs: token: ${{ secrets.ACCESS_TOKEN_GITHUB }} path: Varient_Basic - - name: Displat Root By Dir + - name: Displat Root All Checkout Repos run: | dir - - name: Displat Workspace + - name: 🟢 node + uses: actions/setup-node@v3 + with: + always-auth: true + node-version: '12.18.2' + scope: '@naveed235812' + registry-url: https://registry.npmjs.org + + - name: Displat PLE_DEVOPS SRC + run: | + dir + working-directory: ./PLE_DEVOPS + + - name: npm install + run: npm install + working-directory: ./PLE_DEVOPS/components/hello-world + + - name: Prepare Varient Config run: | - echo %GITHUB_WORKSPACE% + python .\preparevarientConfig.py + working-directory: ./PLE_DEVOPS/components/hello-world + env: + VARIENT_TYPE: WINDOWS + - name: Execute C-Preprocessor + run: | + npm install c-preprocessor -g + echo example of c-preprocessor + c-preprocessor ./src/Main.ts ./src/Main.ts + working-directory: ./PLE_DEVOPS/components/hello-world + + - name: npm build + run: npm run build + working-directory: ./PLE_DEVOPS/components/hello-world + + - name: Execute PLE_DEVOPS + run: node ./lib/index.js + working-directory: ./PLE_DEVOPS/components/hello-world + + - name: npm install + run: npm install + working-directory: ./Varient_Basic + + - name: npm build + run: npm run build + working-directory: ./Varient_Basic + + - name: Execute Varient_Basic + run: node ./lib/index.js + working-directory: ./Varient_Basic + linux: name: "Linux Varient" runs-on: ubuntu-latest From 1d42ba71e02e6839665530570b932361b03b4df3 Mon Sep 17 00:00:00 2001 From: naveedkhan8067 <38525837+naveedkhan8067@users.noreply.github.com> Date: Sun, 10 Dec 2023 21:57:45 +0100 Subject: [PATCH 4/5] Update hello-world.yml --- .github/workflows/hello-world.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 57ba991..6d4ad04 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -119,6 +119,11 @@ jobs: run: node ./lib/index.js working-directory: ./PLE_DEVOPS/components/hello-world + - name: Displat Varient_Basic SRC + run: | + dir + working-directory: ./Varient_Basic + - name: npm install run: npm install working-directory: ./Varient_Basic @@ -130,6 +135,15 @@ jobs: - name: Execute Varient_Basic run: node ./lib/index.js working-directory: ./Varient_Basic + + - name: npm pack + run: npm pack + working-directory: ./Varient_Basic + + - uses: actions/upload-artifact@v3 + with: + name: test-upload-artifact + path: ./Varient_Basic/naveed235812-VarientBasic*.tgz linux: name: "Linux Varient" From 8ade5af7c0c03506b8fa8d3994abf04d790264f3 Mon Sep 17 00:00:00 2001 From: naveedkhan8067 <38525837+naveedkhan8067@users.noreply.github.com> Date: Sun, 10 Dec 2023 22:01:27 +0100 Subject: [PATCH 5/5] Update hello-world.yml --- .github/workflows/hello-world.yml | 140 +++++++++++++++--------------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 6d4ad04..7f14ddd 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -59,91 +59,91 @@ jobs: # env: # NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} - #Test job to checkout several repos - test: - name: "test job" - runs-on: windows-latest - steps: - - name: 📚 Checkout PLE_DEVOPS - uses: actions/checkout@v4 - with: - path: PLE_DEVOPS + #Test job to checkout several repos and test upload Artifacts + # test: + # name: "test job" + # runs-on: windows-latest + # steps: + # - name: 📚 Checkout PLE_DEVOPS + # uses: actions/checkout@v4 + # with: + # path: PLE_DEVOPS - - name: Checkout Varient_Basic - uses: actions/checkout@v4 - with: - repository: naveedkhan8067/Varient_Basic - token: ${{ secrets.ACCESS_TOKEN_GITHUB }} - path: Varient_Basic + # - name: Checkout Varient_Basic + # uses: actions/checkout@v4 + # with: + # repository: naveedkhan8067/Varient_Basic + # token: ${{ secrets.ACCESS_TOKEN_GITHUB }} + # path: Varient_Basic - - name: Displat Root All Checkout Repos - run: | - dir + # - name: Displat Root All Checkout Repos + # run: | + # dir - - name: 🟢 node - uses: actions/setup-node@v3 - with: - always-auth: true - node-version: '12.18.2' - scope: '@naveed235812' - registry-url: https://registry.npmjs.org + # - name: 🟢 node + # uses: actions/setup-node@v3 + # with: + # always-auth: true + # node-version: '12.18.2' + # scope: '@naveed235812' + # registry-url: https://registry.npmjs.org - - name: Displat PLE_DEVOPS SRC - run: | - dir - working-directory: ./PLE_DEVOPS + # - name: Displat PLE_DEVOPS SRC + # run: | + # dir + # working-directory: ./PLE_DEVOPS - - name: npm install - run: npm install - working-directory: ./PLE_DEVOPS/components/hello-world + # - name: npm install + # run: npm install + # working-directory: ./PLE_DEVOPS/components/hello-world - - name: Prepare Varient Config - run: | - python .\preparevarientConfig.py - working-directory: ./PLE_DEVOPS/components/hello-world - env: - VARIENT_TYPE: WINDOWS + # - name: Prepare Varient Config + # run: | + # python .\preparevarientConfig.py + # working-directory: ./PLE_DEVOPS/components/hello-world + # env: + # VARIENT_TYPE: WINDOWS - - name: Execute C-Preprocessor - run: | - npm install c-preprocessor -g - echo example of c-preprocessor - c-preprocessor ./src/Main.ts ./src/Main.ts - working-directory: ./PLE_DEVOPS/components/hello-world + # - name: Execute C-Preprocessor + # run: | + # npm install c-preprocessor -g + # echo example of c-preprocessor + # c-preprocessor ./src/Main.ts ./src/Main.ts + # working-directory: ./PLE_DEVOPS/components/hello-world - - name: npm build - run: npm run build - working-directory: ./PLE_DEVOPS/components/hello-world + # - name: npm build + # run: npm run build + # working-directory: ./PLE_DEVOPS/components/hello-world - - name: Execute PLE_DEVOPS - run: node ./lib/index.js - working-directory: ./PLE_DEVOPS/components/hello-world + # - name: Execute PLE_DEVOPS + # run: node ./lib/index.js + # working-directory: ./PLE_DEVOPS/components/hello-world - - name: Displat Varient_Basic SRC - run: | - dir - working-directory: ./Varient_Basic + # - name: Displat Varient_Basic SRC + # run: | + # dir + # working-directory: ./Varient_Basic - - name: npm install - run: npm install - working-directory: ./Varient_Basic + # - name: npm install + # run: npm install + # working-directory: ./Varient_Basic - - name: npm build - run: npm run build - working-directory: ./Varient_Basic + # - name: npm build + # run: npm run build + # working-directory: ./Varient_Basic - - name: Execute Varient_Basic - run: node ./lib/index.js - working-directory: ./Varient_Basic + # - name: Execute Varient_Basic + # run: node ./lib/index.js + # working-directory: ./Varient_Basic - - name: npm pack - run: npm pack - working-directory: ./Varient_Basic + # - name: npm pack + # run: npm pack + # working-directory: ./Varient_Basic - - uses: actions/upload-artifact@v3 - with: - name: test-upload-artifact - path: ./Varient_Basic/naveed235812-VarientBasic*.tgz + # - uses: actions/upload-artifact@v3 + # with: + # name: test-upload-artifact + # path: ./Varient_Basic/naveed235812-VarientBasic*.tgz linux: name: "Linux Varient"