Skip to content

Add CI

Add CI #22

Workflow file for this run

name: CI
on:
push:
branches: main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
slack-webhook-url: unused
dry-run: true
- run: |
[[ "$SLACK_COLOR" == 'success' ]]
[[ "$SLACK_TITLE" == 'CI test succeeded' ]]
message_re='^.* committed <.*\|.*> .* (.*)$'
[[ "$SLACK_MESSAGE" == $message_re ]]
job_url_re='^https://github\.com/freckle/slack-notify-action/actions/runs/.*/job/.*$'
[[ "$SLACK_FOOTER" =~ $footer_re ]]