Skip to content

MAINT: Update slackapi/slack-github-action action to v3.0.1 (#249) #317

MAINT: Update slackapi/slack-github-action action to v3.0.1 (#249)

MAINT: Update slackapi/slack-github-action action to v3.0.1 (#249) #317

Workflow file for this run

name: Testrunner
on:
push:
branches:
- "main"
pull_request:
env:
PROJECT: zappi-spec
BUILD_URL: "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"
jobs:
test:
runs-on: zon-ubuntu-general-dind
permissions:
contents: "read"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.14"
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
cache: "npm"
cache-dependency-path: "docs/api/package-lock.json"
- run: bin/test
- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
if: failure() && github.ref_name == 'main'
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{secrets.SLACK_TEAM_CONTENT_CHANNEL_ID}}
text: ":small_red_triangle_down: <${{env.BUILD_URL}}|${{env.PROJECT}}> tests failed"