-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.05 KB
/
release.yml
File metadata and controls
44 lines (36 loc) · 1.05 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
name: Release
on:
release:
types: [published]
permissions:
contents: read
jobs:
publish:
name: Notify Packagist
runs-on: ubuntu-latest
steps:
- name: Trigger Packagist update
run: |
curl -s -X POST \
"https://packagist.org/api/update-package?username=${{ secrets.PACKAGIST_USERNAME }}&apiToken=${{ secrets.PACKAGIST_TOKEN }}" \
-d '{"repository":{"url":"https://github.com/astro-api/astroapi-php"}}'
verify:
name: Verify release
runs-on: ubuntu-latest
needs: publish
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2
coverage: none
- name: Install dependencies
run: composer update --no-interaction --prefer-dist
- name: Run unit tests
run: composer test:unit
- name: Run integration tests
env:
ASTROLOGY_API_KEY: ${{ secrets.ASTROLOGY_API_KEY }}
run: composer test:integration