2023-09-01 14:51:30 +02:00
|
|
|
matrix:
|
|
|
|
php:
|
|
|
|
- "8.1"
|
|
|
|
platform:
|
2023-11-14 18:25:48 +01:00
|
|
|
- linux/aarch64
|
2023-09-01 14:51:30 +02:00
|
|
|
|
2023-11-11 15:51:50 +01:00
|
|
|
labels:
|
|
|
|
platform: ${platform}
|
2023-09-01 14:51:30 +02:00
|
|
|
|
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
- push
|
|
|
|
- pull_request
|
2023-09-01 16:34:32 +02:00
|
|
|
image: woodpeckerci/plugin-git:2.1.0
|
2023-09-01 14:51:30 +02:00
|
|
|
settings:
|
|
|
|
depth: 1
|
|
|
|
lfs: false
|
2023-09-01 15:14:28 +02:00
|
|
|
recursive: false
|
2023-09-01 14:51:30 +02:00
|
|
|
tags: true
|
|
|
|
|
2023-09-01 14:52:26 +02:00
|
|
|
steps:
|
2023-09-01 14:51:30 +02:00
|
|
|
test:
|
|
|
|
group: test
|
|
|
|
image: danog/madelineproto:next
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
- push
|
2023-11-30 17:44:10 +01:00
|
|
|
secrets:
|
|
|
|
- API_ID
|
|
|
|
- API_HASH
|
|
|
|
- BOT_TOKEN
|
|
|
|
- DEST
|
|
|
|
environment:
|
|
|
|
- PHP_VERSION=${php}
|
|
|
|
- PLATFORM=${platform}
|
|
|
|
- TAG=${CI_COMMIT_TAG}
|
|
|
|
commands:
|
|
|
|
- apk add bash
|
|
|
|
- tests/test.sh
|
|
|
|
- php tests/handshake.php
|
|
|
|
- composer test
|
|
|
|
test_pr:
|
|
|
|
group: test
|
|
|
|
image: danog/madelineproto:next
|
|
|
|
when:
|
|
|
|
event:
|
2023-09-01 14:51:30 +02:00
|
|
|
- pull_request
|
|
|
|
environment:
|
|
|
|
- PHP_VERSION=${php}
|
|
|
|
- PLATFORM=${platform}
|
|
|
|
- TAG=${CI_COMMIT_TAG}
|
|
|
|
commands:
|
|
|
|
- apk add bash
|
2023-09-17 19:16:38 +02:00
|
|
|
- tests/test.sh
|
2023-09-16 17:23:03 +02:00
|
|
|
- php tests/handshake.php
|
2023-11-30 17:58:48 +01:00
|
|
|
- composer test-light
|