-
Notifications
You must be signed in to change notification settings - Fork 7
79 lines (60 loc) · 1.67 KB
/
main.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
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
70
71
72
73
#-----------------------------------------
# Framework Deploy
#-----------------------------------------
name: build
env:
APP_NAME: ApPHP MVC Framework
DEPLOY_PACKAGE_NAME: "apphp-deploy-${{ github.sha }}"
# Run on [push]
on:
push:
branches:
- master
#- dev
jobs:
# my-testing:
# runs-on: ubuntu-latest
# env:
# VAR1: "Local var1"
# VAR2: "Local var2"
# steps:
# - name: Run testing
# run: echo Testing is running...
# - name: Print env variables
# run: |
# echo "App Name: ${{ env.APP_NAME }}"
# - name: Print local env variables
# run: |
# echo "Var1: ${{ env.VAR1 }}"
# echo "Var2: ${{ env.VAR2 }}"
# echo "Var2: $LOCAL_VAR"
# env:
# LOCAL_VAR: "Super local var"
deploy:
runs-on: ubuntu-latest
# needs: [testing]
steps:
- name: Print env variables
run: |
echo "Pack Name: ${{ env.DEPLOY_PACKAGE_NAME }}"
- name: Git clone my repo
uses: actions/checkout@v1
- name: List current folder
run: ls -la
- name: Check some packages if they are installed
run: |
composer --version
php --version
phpunit --version
- name: Install required packages
run: composer update
- name: List current folder again to check vengor/ dir
run: ls -la
# - name: Install PHPUnit
# run: composer require phpunit/phpunit ^7.5
# - name: Check again some packages if they are installed
# run: |
# composer --version
# phpunit --version
- name: Runt PHPUnit tests for the Framework
run: composer tests