Skip to content

Merge pull request #160 from ZeitOnline/WCM-674-title-nullable #105

Merge pull request #160 from ZeitOnline/WCM-674-title-nullable

Merge pull request #160 from ZeitOnline/WCM-674-title-nullable #105

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.12"
cache: "pipenv"
- run: pip install pipenv
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: "20"
cache: "npm"
cache-dependency-path: "docs/api/package-lock.json"
- run: bin/test
- uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
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"