Skip to content

Commit

Permalink
feat: set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Aug 25, 2021
1 parent 8acd1d7 commit 80a6ff9
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2.1

orbs:
release-management: salesforce/npm-release-management@4

workflows:
version: 2
release:
jobs:
- release-management/validate-pr:
filters:
branches:
ignore: main
- release-management/release-package:
github-release: true
filters:
branches:
only: main
dependabot-automerge:
triggers:
- schedule:
cron: '0 2,5,8,11 * * *'
filters:
branches:
only:
- main
jobs:
- release-management/dependabot-automerge

23 changes: 23 additions & 0 deletions .github/workflows/slackprnotification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Slack pull request open notification

on:
pull_request:
types: [opened, reopened]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Notify slack pr open
env:
WEBHOOK_URL : ${{ secrets.CLI_TEAM_SLACK_WEBHOOK_URL }}
PULL_REQUEST_AUTHOR_ICON_URL : ${{ github.event.pull_request.user.avatar_url }}
PULL_REQUEST_AUTHOR_NAME : ${{ github.event.pull_request.user.login }}
PULL_REQUEST_AUTHOR_PROFILE_URL: ${{ github.event.pull_request.user.html_url }}
PULL_REQUEST_BASE_BRANCH_NAME : ${{ github.event.pull_request.base.ref }}
PULL_REQUEST_COMPARE_BRANCH_NAME : ${{ github.event.pull_request.head.ref }}
PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }}
PULL_REQUEST_REPO: ${{ github.event.pull_request.head.repo.name }}
PULL_REQUEST_TITLE : ${{ github.event.pull_request.title }}
PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }}
uses: salesforcecli/pr-notification-action@main
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "echo 'no build necessary'"
}
}

0 comments on commit 80a6ff9

Please sign in to comment.