forked from composer/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (44 loc) · 1.67 KB
/
Copy pathphp32bit.yml
File metadata and controls
57 lines (44 loc) · 1.67 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
name: "Continuous Integration (32bit)"
on:
push:
branches:
- main
paths-ignore:
- 'doc/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
COMPOSER_UPDATE_FLAGS: ""
permissions:
contents: read
jobs:
tests:
name: "CI"
runs-on: ubuntu-latest
container: shivammathur/node:latest-i386
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
with:
coverage: "none"
extensions: "intl, zip"
ini-values: "memory_limit=-1, phar.readonly=0, error_reporting=E_ALL, display_errors=On, display_startup_errors=On"
php-version: "8.4"
tools: "composer:snapshot"
- name: "Install dependencies from composer.lock using composer binary provided by system"
run: 'composer install $COMPOSER_FLAGS'
- name: "Run install again using composer binary from source"
run: 'bin/composer install $COMPOSER_FLAGS'
- name: "Make source binary the one used by default"
run: |
echo -e "$(pwd)/bin\n$(cat $GITHUB_PATH)" > $GITHUB_PATH
echo -e "COMPOSER_BINARY=$(pwd)/bin/composer" >> $GITHUB_ENV
git config --global --add safe.directory $(pwd)
- name: "Prepare git environment"
run: "git config --global user.name composer && git config --global user.email composer@example.com"
- name: "Run tests"
run: "vendor/bin/simple-phpunit --verbose"