Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable test #9

Merged
merged 5 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 45 additions & 43 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,46 @@
# on:
# push:
# branches:
# - main
on:
push:
branches:
- '**'

# 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/[email protected]
# - 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 }}
jobs:
release:
name: Build GitHub Action
runs-on: ubuntu-latest
container: node:20
steps:
- name: Install packages
run: apt-get update && apt-get install -y rsync git
- uses: actions/checkout@v3
- 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_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_id: ${{ steps.discovery.outputs.id }}
project_id: ${{ vars.PROJECT_ID }}
hostname: ${{ vars.HOSTNAME }}
Loading