1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 05:38:57 +01:00
MadelineProto/.woodpecker/.test.yml
2023-11-30 19:59:28 +01:00

74 lines
1.1 KiB
YAML

matrix:
php:
- "8.1"
platform:
- linux/aarch64
labels:
platform: ${platform}
clone:
git:
when:
event:
- tag
- push
- pull_request
image: woodpeckerci/plugin-git:2.1.0
settings:
depth: 1
lfs: false
recursive: false
tags: true
steps:
test:
group: test
image: danog/madelineproto:next
when:
event:
- tag
- push
secrets:
- API_ID
- API_HASH
- BOT_TOKEN
- DEST
commands:
- apk add bash
- tests/test.sh phpunit-light
test_pr:
group: test
image: danog/madelineproto:next
when:
event:
- pull_request
commands:
- apk add bash
- tests/test.sh phpunit-light
cs:
group: test
image: danog/madelineproto:next
when:
event:
- pull_request
- tag
- push
commands:
- apk add bash
- tests/test.sh cs
handshake:
group: test
image: danog/madelineproto:next
when:
event:
- pull_request
- tag
- push
commands:
- apk add bash
- tests/test.sh handshake