From 80a6ff9c85c158a96381e3f69a4a3b35bdef68a0 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Wed, 25 Aug 2021 18:49:35 -0300 Subject: [PATCH] feat: set up CI --- .circleci/config.yml | 29 +++++++++++++++++++++++ .github/workflows/slackprnotification.yml | 23 ++++++++++++++++++ package.json | 3 +++ 3 files changed, 55 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .github/workflows/slackprnotification.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..90416aa --- /dev/null +++ b/.circleci/config.yml @@ -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 + diff --git a/.github/workflows/slackprnotification.yml b/.github/workflows/slackprnotification.yml new file mode 100644 index 0000000..7ea0796 --- /dev/null +++ b/.github/workflows/slackprnotification.yml @@ -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 diff --git a/package.json b/package.json index 8a923f6..900ef08 100644 --- a/package.json +++ b/package.json @@ -33,5 +33,8 @@ }, "publishConfig": { "access": "public" + }, + "scripts": { + "build": "echo 'no build necessary'" } }