test/.drone.yml

47 lines
834 B
YAML
Raw Normal View History

2022-08-08 12:04:34 +02:00
---
kind: pipeline
type: docker
name: start-github-action
steps:
- name: create workflow_dispatch event
2022-08-08 14:36:26 +02:00
image: itsblue.dev/plugins/github-workflow-controller
settings:
github_token:
2022-08-08 12:04:34 +02:00
from_secret: github-token
2022-08-08 14:36:26 +02:00
github_repo: "dorianim/drone-runner"
workflow_id: "drone.yml"
workflow_actions: start
2022-08-08 12:05:50 +02:00
2022-08-08 11:44:52 +02:00
---
kind: pipeline
type: exec
2022-08-08 11:45:28 +02:00
name: macos
2022-08-08 11:44:52 +02:00
platform:
os: darwin
arch: amd64
steps:
- name: test
commands:
- sw_vers
2022-08-08 12:04:34 +02:00
depends_on:
- start-github-action
2022-08-08 14:36:26 +02:00
---
kind: pipeline
type: docker
name: stop-github-action
steps:
2022-08-08 14:38:36 +02:00
- name: cancel and delete workflow
2022-08-08 14:36:26 +02:00
image: itsblue.dev/plugins/github-workflow-controller
settings:
github_token:
from_secret: github-token
github_repo: "dorianim/drone-runner"
workflow_id: "drone.yml"
2022-08-08 14:37:27 +02:00
workflow_actions: cancel,delete
2022-08-08 14:36:26 +02:00
depends_on:
- macos