From 2e01a8d266424c4e6eec6a64b75a547707bfc6ad Mon Sep 17 00:00:00 2001 From: Monika <147532322+monkakrakowska@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:58:15 +0200 Subject: [PATCH 1/6] Delete .github/workflows/dockerx.yml --- .github/workflows/dockerx.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/dockerx.yml diff --git a/.github/workflows/dockerx.yml b/.github/workflows/dockerx.yml deleted file mode 100644 index a3ae287..0000000 --- a/.github/workflows/dockerx.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Docker Deployment - -on: - push: - branches: - - "release" - - pull_request: - branches: - - "release" - -jobs: - dockerx: - runs-on: ubuntu-latest - steps: - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v2 - with: - push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/todo-nodejs-vx:${{github.run_number}} From 580d26fe29b0b56f00c60e81e6b620dc9622aaf6 Mon Sep 17 00:00:00 2001 From: Monika <147532322+monkakrakowska@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:58:26 +0200 Subject: [PATCH 2/6] Delete .github/workflows/node.js.scan.yml --- .github/workflows/node.js.scan.yml | 50 ------------------------------ 1 file changed, 50 deletions(-) delete mode 100644 .github/workflows/node.js.scan.yml diff --git a/.github/workflows/node.js.scan.yml b/.github/workflows/node.js.scan.yml deleted file mode 100644 index b1c012e..0000000 --- a/.github/workflows/node.js.scan.yml +++ /dev/null @@ -1,50 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# This workflow integrates njsscan with GitHub's Code Scanning feature -# nodejsscan is a static security code scanner that finds insecure code patterns in your Node.js applications -# SARIF, the Static Analysis Results Interchange Format, is a standard, -# JSON-based format for the output of static analysis tools. - -name: Node.js Scan SARIF - -on: - push: - branches: [test, master, release, main] - - pull_request: - # The branches below must be a subset of the branches above - branches: [test, master, release, main] - - schedule: - - cron: "29 12 * * 6" - -permissions: - contents: read - -jobs: - njsscan: - permissions: - contents: read # for actions/checkout to fetch code - security-events: write # for github/codeql-action/upload-sarif to upload SARIF results - - runs-on: ubuntu-latest - - name: njsscan code scanning - - steps: - - name: Checkout the code - uses: actions/checkout@v3 - - - name: nodejsscan scan - id: njsscan - uses: ajinabraham/njsscan-action@master - with: - args: ". --sarif --output results.sarif || true" - - - name: Upload njsscan report - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: results.sarif From 6c280035ade265e612da56baddd58d3045d0b755 Mon Sep 17 00:00:00 2001 From: Monika <147532322+monkakrakowska@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:59:25 +0200 Subject: [PATCH 3/6] Delete .github/workflows/node.js.yml --- .github/workflows/node.js.yml | 37 ----------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index e657802..0000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,37 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI Test - -on: - push: - branches: - - "*" - - pull_request: - branches: - - "*" - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [12.x, 14.x, 16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: "npm" - - - run: npm ci - - - run: npm run build --if-present - - - run: npm test From 2b8ac65d38643db88319354ee369531c0b0b8e9d Mon Sep 17 00:00:00 2001 From: Monika <147532322+monkakrakowska@users.noreply.github.com> Date: Tue, 10 Jun 2025 18:01:58 +0200 Subject: [PATCH 4/6] Create build.yml --- workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 workflows/build.yml diff --git a/workflows/build.yml b/workflows/build.yml new file mode 100644 index 0000000..202758b --- /dev/null +++ b/workflows/build.yml @@ -0,0 +1,31 @@ +name: Build for ino_dev + +on: + push: + branches: [ino_dev] + pull_request: + branches: [ino_dev] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'npm' + - run: npm ci + - run: npm test + - run: npm run build --if-present + + - name: Upload build + uses: actions/upload-artifact@v4 + with: + name: build-files + path: | + dist/ + build/ + public/ + if: always() From 85aa454bf18d7be6871214023b3fd8d69edc7b6a Mon Sep 17 00:00:00 2001 From: Monika <147532322+monkakrakowska@users.noreply.github.com> Date: Tue, 10 Jun 2025 18:02:16 +0200 Subject: [PATCH 5/6] Update .dockerignore --- .dockerignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 2b483e0..9c1ac88 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,4 +4,4 @@ *.gif *.bmp *.tiff -*.md \ No newline at end of file +*.md From 49d9b488e0d2f7439590dfd12a3ca854912bafc0 Mon Sep 17 00:00:00 2001 From: Monika <147532322+monkakrakowska@users.noreply.github.com> Date: Tue, 10 Jun 2025 18:02:50 +0200 Subject: [PATCH 6/6] Create main.yml --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..202758b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Build for ino_dev + +on: + push: + branches: [ino_dev] + pull_request: + branches: [ino_dev] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'npm' + - run: npm ci + - run: npm test + - run: npm run build --if-present + + - name: Upload build + uses: actions/upload-artifact@v4 + with: + name: build-files + path: | + dist/ + build/ + public/ + if: always()