-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 1.08 KB
/
build.yml
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
name: build
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v2
- uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: 'projects/825824562054/locations/global/workloadIdentityPools/actions-pool/providers/actions-provider'
service_account: '[email protected]'
- uses: 'google-github-actions/setup-gcloud@v1'
with:
install_components: 'alpha,beta,cloud-datastore-emulator'
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: redis
- uses: ramsey/composer-install@v2
- run: |
gcloud beta emulators datastore start --project toiletevolution-server-test &
curl http://localhost:8081 --silent --retry 30 --retry-connrefused --retry-delay 1
- run: gcloud beta emulators datastore env-init | sed -e "s/export //g" >> "$GITHUB_ENV"
- run: composer run-script t