- Create a slack app for your workspace (alternatively use an existing app you have already created and installed)
- Add the
chat.write
scope under OAuth & Permissions
- Add the
- Install the app to your workspace
- name: Notify jest results to Slack
if: failure()
uses: trackrecords/github-actions-slack-jest-notify@main
with:
token: ${{ secrets.SLACK_BOT_TOKEN }}
channel: "CHANNEL_ID" # Slack channel id to post message
path: "result.json" # path to jest result json
yarn build
git add dist/index.js dist/licenses.txt