From ba4f8e4cfd230674d3c09823e3d08894a01fe1c0 Mon Sep 17 00:00:00 2001 From: Barahalikar Siddharth Date: Wed, 1 Nov 2023 23:30:20 +0530 Subject: [PATCH 1/3] asd --- .github/workflows/dispatch.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 3d05fb1..24ee0d9 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -44,7 +44,6 @@ jobs: gh api -X PATCH -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ -f 'conclusion=success' \ - -f 'details_url=https://cdn-icons-png.flaticon.com/512/4138/4138124.png' \ -f 'output[title]=My Check Run Title 🚀' \ -f 'output[summary]=**Summary**: The run completed.' \ -f 'output[text]=Everything worked as expected. You should see a logo above.' \ From 666e544a3b5a9002db9d2bfa8edd68dcedfa4d0c Mon Sep 17 00:00:00 2001 From: Barahalikar Siddharth Date: Thu, 2 Nov 2023 00:10:53 +0530 Subject: [PATCH 2/3] ok --- .github/workflows/ccc.yml | 3 +- .github/workflows/solar-system.yml | 83 +++++++++++++++++++++++++++++ .github/workflows/solar-system.ymlz | 51 ------------------ 3 files changed, 84 insertions(+), 53 deletions(-) create mode 100644 .github/workflows/solar-system.yml delete mode 100644 .github/workflows/solar-system.ymlz diff --git a/.github/workflows/ccc.yml b/.github/workflows/ccc.yml index 7bf2c76..66d3f52 100644 --- a/.github/workflows/ccc.yml +++ b/.github/workflows/ccc.yml @@ -2,7 +2,7 @@ name: Check Run Triggered Workflow on: check_run: - types: [created, completed] + types: jobs: check-run-job: @@ -20,4 +20,3 @@ jobs: if: github.event.action == 'completed' run: echo "A check run was completed." - \ No newline at end of file diff --git a/.github/workflows/solar-system.yml b/.github/workflows/solar-system.yml new file mode 100644 index 0000000..a716979 --- /dev/null +++ b/.github/workflows/solar-system.yml @@ -0,0 +1,83 @@ +name: Solar System + +on: + workflow_dispatch: + push: + branches: + - main + - test # ignoring pushing to any feature branch using ! + pull_request: + types: opened + + +env: + DOCKERHUB_USERNAME: siddharth67 + IMAGE_VERSION: ${{ github.sha }} + +jobs: + unit-testing: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Analyze code with CodeQL + uses: github/codeql-action/analyze@v4 + # - name: Setup NodeJS Version - 19 on ubuntu-latest + # uses: actions/setup-node@v3 + # with: + # node-version: 20 + + # - name: NPM Install + # run: npm install + + # - name: NPM Testing + # id: unit-testing + # run: NODE_ENV=deploy npm test + + # - name: Archive Test Result + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: Mocha-Test-Result + # path: test-results.xml + + # - uses: check-run-reporter/action@v2.12.0 + # if: always() + # with: + # token: ${{ secrets.CHECK_RUN_REPORTER_TOKEN }} + # report: 'test-results.xml' + # code-coverage: + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v3 + + # - name: Setup NodeJS Version - 19 + # uses: actions/setup-node@v3 + # with: + # node-version: 19 + + # - name: Cache NPM dependencies + # uses: actions/cache@v3 + # with: + # path: ~/.npm + # key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }} + + # - name: NPM Install + # run: npm install + + # - name: NPM Code Coverage + # run: NODE_ENV=deploy npm run coverage + # continue-on-error: true + + + # - name: list + # run: ls -ltr + + # - name: Code Coverage Annotation + # uses: ggilder/codecoverage@v1 + # with: + # GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + # COVERAGE_FILE_PATH: "./coverage/lcov.info" + # COVERAGE_FORMAT: "lcov" \ No newline at end of file diff --git a/.github/workflows/solar-system.ymlz b/.github/workflows/solar-system.ymlz deleted file mode 100644 index 6cbcea8..0000000 --- a/.github/workflows/solar-system.ymlz +++ /dev/null @@ -1,51 +0,0 @@ -name: Solar System - -on: - workflow_dispatch: - push: - branches: - - main - - test # ignoring pushing to any feature branch using ! - pull_request: - types: opened - - -env: - DOCKERHUB_USERNAME: siddharth67 - IMAGE_VERSION: ${{ github.sha }} - -jobs: - code-coverage: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup NodeJS Version - 19 - uses: actions/setup-node@v3 - with: - node-version: 19 - - - name: Cache NPM dependencies - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }} - - - name: NPM Install - run: npm install - - - name: NPM Code Coverage - run: NODE_ENV=deploy npm run coverage - continue-on-error: true - - - - name: list - run: ls -ltr - - - name: Code Coverage Annotation - uses: ggilder/codecoverage@v1 - with: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - COVERAGE_FILE_PATH: "./coverage/lcov.info" - COVERAGE_FORMAT: "lcov" \ No newline at end of file From a1e83f18ca6158a21ced6dd3b7237aeab7d8b10c Mon Sep 17 00:00:00 2001 From: Barahalikar Siddharth Date: Thu, 2 Nov 2023 00:11:55 +0530 Subject: [PATCH 3/3] asd --- .github/workflows/solar-system.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/solar-system.yml b/.github/workflows/solar-system.yml index a716979..36e3a94 100644 --- a/.github/workflows/solar-system.yml +++ b/.github/workflows/solar-system.yml @@ -20,9 +20,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - + - name: Analyze code with CodeQL - uses: github/codeql-action/analyze@v4 + uses: github/codeql-action/analyze@main # - name: Setup NodeJS Version - 19 on ubuntu-latest # uses: actions/setup-node@v3 # with: