-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (54 loc) · 1.69 KB
/
Copy pathphp.yml
File metadata and controls
64 lines (54 loc) · 1.69 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
name: UPPM builds and tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build uppm.phar
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
php8.1 target/uppm.phar lock
php8.1 target/uppm.phar install
- name: Building
run: |
sudo chmod 777 /etc/php/8.1/cli/php.ini
sudo echo phar.readonly = Off >> /etc/php/8.1/cli/php.ini
php8.1 src/main/bootstrap.php build
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Building UPPM
run: |
sudo chmod 777 /etc/php/8.1/cli/php.ini
sudo echo phar.readonly = Off >> /etc/php/8.1/cli/php.ini
php8.1 target/uppm.phar lock
php8.1 target/uppm.phar install
php8.1 src/main/bootstrap.php build
chmod +x ./target/uppm.phar
- name: Install packages
run: ./target/uppm.phar install
- name: Getting autoload
run: ./target/uppm.phar autoload
- name: Creating Project and testing it
run: |
./target/uppm.phar create test
cd test
../target/uppm.phar install deverm
../target/uppm.phar install interaapps/ulole-orm+master@github
../target/uppm.phar install guzzlehttp/guzzle@composer
../target/uppm.phar install
../target/uppm.phar lock
../target/uppm.phar run start
echo \n
sudo chmod 777 /etc/php/8.1/cli/php.ini
sudo echo phar.readonly = Off >> /etc/php/8.1/cli/php.ini
../target/uppm.phar build
chmod +x target/test-1.0.phar
./target/test-1.0.phar