Skip to content

Commit

Permalink
added github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Vamshi Reddy <[email protected]>
  • Loading branch information
VamshiReddy02 committed Feb 14, 2024
1 parent a1c0361 commit a5404c7
Show file tree
Hide file tree
Showing 11 changed files with 12,827 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: VamshiReddy02
17 changes: 17 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
area:
- 'bug'
- 'important'

kind:
- 'failing-test'
- 'cleanup'

priority:
- 'low'
- 'high'

tests:
- '**/*.test.ts'

source:
- 'src/**'
31 changes: 31 additions & 0 deletions .github/workflows/issueComment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Test issue comments"
on:
issue_comment:
types: [created]

jobs:
execute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: npm install
- run: npm run build
- uses: ./
with:
prow-commands: '/assign
/unassign
/approve
/retitle
/area
/kind
/priority
/remove
/lgtm
/close
/reopen
/lock
/milestone
/hold
/cc
/uncc'
github-token: "${{ secrets.GITHUB_TOKEN }}"
17 changes: 17 additions & 0 deletions .github/workflows/lgtm-merger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Merge on lgtm label"
on:
schedule:
- cron: "*/20 * * * *"

jobs:
execute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: npm install
- run: npm run build
- uses: ./
with:
jobs: 'lgtm'
github-token: "${{ secrets.GITHUB_TOKEN }}"
merge-method: 'squash'
14 changes: 14 additions & 0 deletions .github/workflows/onPr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Run Jobs on PR"
on: pull_request

jobs:
execute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: npm install
- run: npm run build
- uses: ./
with:
jobs: 'lgtm'
github-token: "${{ secrets.GITHUB_TOKEN }}"
12 changes: 12 additions & 0 deletions .github/workflows/prLabeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Label PRs from globs"
on:
- pull_request_target

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labels.yaml
19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Issue is stale'
stale-pr-message: 'Pull req is stale'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Build and test code"
on: [push, pull_request]

jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: |
npm install
npm run build
npm run test
99 changes: 99 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Dependency directory
node_modules

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# OS metadata
.DS_Store
Thumbs.db

# Ignore built ts files
__tests__/runner/*
lib/**/*
Loading

0 comments on commit a5404c7

Please sign in to comment.