Skip to content

Point to latest buildkit tag #128

Point to latest buildkit tag

Point to latest buildkit tag #128

name: Run tests
on:
pull_request:
workflow_dispatch:
inputs:
buildkit-tag:
description: "The isle-buildkit tag to pull for the fleet of docker containers"
required: true
type: string
default: 'main'
starter-site-ref:
description: "The islandora-starter-site ref to checkout (heads/BRANCH-NAME or tags/TAG-NAME)"
required: true
type: string
default: 'heads/main'
schedule:
- cron: '15 11 * * *'
jobs:
build:
runs-on: ubuntu-latest
env:
ISLANDORA_TAG: "${{ github.event.inputs.buildkit-tag }}"
ISLANDORA_STARTER_REF: "${{ github.event.inputs.starter-site-ref }}"
steps:
- uses: actions/checkout@v4
- run: shellcheck tests/*.sh
- name: install mkcert
run: |-
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
chmod +x mkcert-v*-linux-amd64
sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
- name: start islandora-starter-site
run: ./tests/init-template-starter.sh
- name: Notify Slack on nightly test failure
if: failure() && github.event_name == 'schedule'
run: |-
curl -s -o /dev/null -XPOST $SLACK_WEBHOOK_URL -d '{
"text": "🚨 Scheduled job failed! Click to view the run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
}'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}