Skip to content

Commit

Permalink
chore: add dependabot configuration files (#2093)
Browse files Browse the repository at this point in the history
* chore: add dependabot configuration files

* remove unnessary jobs

* add config for github actions

* specify branch

* add commit messages

* resolve confilicts

---------

Co-authored-by: Lenny Chen <lenny.chen@spectrocloud.com>
  • Loading branch information
lennessyy and lennessyy authored Feb 1, 2024
1 parent 68018c1 commit eff0946
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
target-branch: "master"
commit-message:
prefix: "chore:"

- package-ecosystem: "github-actions"
directory: "/" # Root directory of the repository
schedule:
interval: "monthly"
target-branch: "master"
commit-message:
prefix: "chore:"
47 changes: 47 additions & 0 deletions .github/workflows/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Pre-merge Checks for Dependabot

on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
branches: ["master"]
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'


concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_SECRET_KEY }}
AWS_DEFAULT_REGION: us-east-1
APPZI_TOKEN: ${{ secrets.APPZI_TOKEN }}
MENDABLE_API_KEY: ${{ secrets.MENDABLE_API_KEY }}
FULLSTORY_ORGID: ${{ secrets.FULLSTORY_ORGID }}
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_SEARCH_KEY: ${{ secrets.ALGOLIA_SEARCH_KEY }}

jobs:

build:
name: Build
needs: [run-ci, prettier]
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"

- run: npm ci

- name: Build
run: |
npm run build

0 comments on commit eff0946

Please sign in to comment.