From 02b7200937a4615262b3c717de954db8a33f25cb Mon Sep 17 00:00:00 2001 From: Bram Kortooms Date: Mon, 16 Dec 2024 17:12:47 +0200 Subject: [PATCH] fix: temporarily disable test --- .github/workflows/release.yml | 51 ++++++++++----------- .github/workflows/test.yml | 86 +++++++++++++++++------------------ 2 files changed, 68 insertions(+), 69 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f147d5f..0b75f8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Release on: push: branches: - - master + - main jobs: release: @@ -10,28 +10,27 @@ jobs: runs-on: ubuntu-latest container: node:16 steps: - - name: Install packages - run: | - apt-get update - apt-get install -y rsync - - uses: actions/checkout@v3 - - name: Install dependencies - run: npm ci -q - - name: Build release - run: | - npm run lint - npm run build - npm run pack - - name: Copy files to release - run: | - mkdir release - cp LICENSE release/ - cp README.md release/ - cp action.yml release/ - cp -R dist/ release/dist/ - - name: Push changes to the branch - uses: JamesIves/github-pages-deploy-action@v4.3.2 - with: - branch: release - folder: release - + - name: Install packages + run: | + apt-get update + apt-get install -y rsync + - uses: actions/checkout@v3 + - name: Install dependencies + run: npm ci -q + - name: Build release + run: | + npm run lint + npm run build + npm run pack + - name: Copy files to release + run: | + mkdir release + cp LICENSE release/ + cp README.md release/ + cp action.yml release/ + cp -R dist/ release/dist/ + - name: Push changes to the branch + uses: JamesIves/github-pages-deploy-action@v4.3.2 + with: + branch: release + folder: release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7cc19fe..19786fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,44 +1,44 @@ -on: - push: - branches: - - master +# on: +# push: +# branches: +# - main -jobs: - release: - name: Build GitHub Action - runs-on: ubuntu-latest - container: node:16 - steps: - - name: Install packages - run: apt-get update && apt-get install -y rsync git - - uses: actions/checkout@v2.3.1 - - name: Install dependencies - run: npm ci && npm install -g @vercel/ncc - - name: Build release - run: npm run lint && npm run build && npm run pack - - name: Copy files to release - run: | - mkdir release - cp README.md release/ - cp action.yml release/ - cp -R dist/ release/dist/ - - name: Start Bright Discovery 🏁 - id: discovery - uses: NeuraLegion/run-discovery@release - with: - api_token: ${{ secrets.BRIGHTSEC_TOKEN }} - name: GitHub discovery ${{ github.sha }} - project: ${{ vars.PROJECT_ID }} - hostname: ${{ vars.HOSTNAME }} - discovery_types: | - [ "crawler" ] - crawler_urls: | - [ "https://brokencrystals.com" ] - hosts_filter: | - [ ] - - name: Stop the discovery 🛑 - id: stop - uses: ./release - with: - api_token: ${{ secrets.BRIGHTSEC_TOKEN }} - scan: ${{ steps.discovery.outputs.id }} +# jobs: +# release: +# name: Build GitHub Action +# runs-on: ubuntu-latest +# container: node:16 +# steps: +# - name: Install packages +# run: apt-get update && apt-get install -y rsync git +# - uses: actions/checkout@v2.3.1 +# - name: Install dependencies +# run: npm ci && npm install -g @vercel/ncc +# - name: Build release +# run: npm run lint && npm run build && npm run pack +# - name: Copy files to release +# run: | +# mkdir release +# cp README.md release/ +# cp action.yml release/ +# cp -R dist/ release/dist/ +# - name: Start Bright Discovery 🏁 +# id: discovery +# uses: NeuraLegion/run-discovery@push-node-version +# with: +# api_token: ${{ secrets.BRIGHTSEC_TOKEN }} +# name: GitHub discovery ${{ github.sha }} +# project_id: ${{ vars.PROJECT_ID }} +# hostname: ${{ vars.HOSTNAME }} +# discovery_types: | +# [ "crawler" ] +# crawler_urls: | +# [ "https://brokencrystals.com" ] +# hosts_filter: | +# [ ] +# - name: Stop the discovery 🛑 +# id: stop +# uses: ./release +# with: +# api_token: ${{ secrets.BRIGHTSEC_TOKEN }} +# discovery: ${{ steps.discovery.outputs.id }}