-
-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (57 loc) · 2.13 KB
/
phar.yaml
File metadata and controls
69 lines (57 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build PHAR
on:
pull_request:
permissions:
contents: read
jobs:
build-agent:
name: Build Agent
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Internal github app token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.1.1
id: app-token
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0
ref: ${{ github.head_ref || github.ref }}
- name: Setup PHP for agent dependencies
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
with:
php-version: '7.2'
tools: composer:v2
- name: Install dependencies
working-directory: agent
run: composer update --no-progress --no-interaction --prefer-dist
- name: Setup PHP for Box
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
with:
php-version: '8.4'
tools: box
ini-values: phar.readonly=0
- name: Build PHAR
run: scripts/build.sh
- name: Setup PHP for PHAR test
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
with:
php-version: '7.2'
- name: Test PHAR
run: php bin/sentry-agent help
- name: Test PHAR signature mismatch
run: |
cp bin/sentry-agent /tmp/sentry-agent
echo "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" > /tmp/sentry-agent.sig
! php /tmp/sentry-agent help
- name: Commit PHAR
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
with:
add: "bin/sentry-agent bin/sentry-agent.sig"
message: "Add PHAR artifact"
default_author: github_actions