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 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}} 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() 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 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 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()