Skip to content

Commit

Permalink
feat: enable test (#9)
Browse files Browse the repository at this point in the history
* feat: enable test

* feat: enable test

* feat: enable test

* feat: enable test

* feat: enable test
  • Loading branch information
bramkor authored Dec 17, 2024
1 parent 2af13c6 commit b5682a9
Showing 1 changed file with 45 additions and 43 deletions.
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 }}

0 comments on commit b5682a9

Please sign in to comment.