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

Testing Github BOT #7

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 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
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Main
on:
push:
branches: [ main ]

env:
SPECTRAL_DSN: ${{ secrets.SPECTRAL_DSN }}

jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install and run Spectral CI
uses: spectralops/spectral-github-action@v2
with:
spectral-dsn: ${{ env.SPECTRAL_DSN }}
spectral-args: scan --ok --include-tags base,audit
24 changes: 24 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pipeline {
agent any
environment {
SPECTRAL_DSN = credentials('spectral-dsn')
}
stages {
stage('install Spectral') {
steps {
sh "curl -L 'https://get.spectralops.io/latest/x/sh?dsn=$SPECTRAL_DSN' | sh"
}
}
stage('scan for issues') {
steps {
sh "$HOME/.spectral/spectral scan --include-tags base,audit"
}
}
stage('build') {
steps {
// your build scripts
sh "./build.sh"
}
}
}
}
11 changes: 11 additions & 0 deletions krazy888.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const Sentry = require('@sentry/node');
// or use es6 import statements
// import * as Sentry from '@sentry/node';

// All integrations that come with an SDK can be found on the Sentry.Integrations object
// Custom integrations must conform Integration interface: https://github.com/getsentry/sentry-javascript/blob/master/packages/types/src/index.ts

Sentry.init({
dsn: 'https://[email protected]/5340604',
integrations: [new MyAwesomeIntegration()]
});