Skip to content

Commit

Permalink
Merge pull request #26 from tyler36/20240314_use_official_workflow_ac…
Browse files Browse the repository at this point in the history
…tion

refactor: update test workflow inline with other official addons
  • Loading branch information
seebeen authored Apr 24, 2024
2 parents 04f1e0a + 1f1bdb4 commit f3be6ad
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/cron_tests.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: tests
on:
pull_request:
push:
branches: [ main ]

schedule:
- cron: '25 08 * * *'

workflow_dispatch:
inputs:
debug_enabled:
description: 'Debug with tmate set "debug_enabled"'
required: false
default: "false"

env:
# Allow ddev get to use a github token to prevent rate limiting by tests
DDEV_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Required permissions for keep-alive, used by ddev/github-action-add-on-test
permissions:
actions: write

jobs:
tests:
strategy:
matrix:
ddev_version: [stable, HEAD]
fail-fast: false

runs-on: ubuntu-latest

steps:
- uses: ddev/github-action-add-on-test@v2
with:
ddev_version: ${{ matrix.ddev_version }}
token: ${{ secrets.GITHUB_TOKEN }}
debug_enabled: ${{ github.event.inputs.debug_enabled }}
addon_repository: ${{ env.GITHUB_REPOSITORY }}
addon_ref: ${{ env.GITHUB_REF }}

0 comments on commit f3be6ad

Please sign in to comment.