-
-
Notifications
You must be signed in to change notification settings - Fork 14
29 lines (29 loc) · 1.64 KB
/
Copy pathphp-test.yml
File metadata and controls
29 lines (29 loc) · 1.64 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
name: PHPlot loading test
run-name: ${{ github.actor }} Testing calling via 'require src/...' and via 'composer vendor/autoload.php'
on: [push]
jobs:
Test-require-and-composer:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 Job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 Job is now running on a ${{ runner.os }} server."
- run: echo "🔎 Branch is ${{ github.ref }} and Repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- run: php --version
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: See if PHPlot works with "require src/phplot.php"
run: php -r "require 'src/phplot.php'; \$plot=new Phplot\\Phplot\\phplot(80, 60);"
- name: See if PHPlot trucolor works with "require src/phplot_truecolor.php"
run: php -r "require 'src/phplot.php'; require 'src/phplot_truecolor.php'; \$plot=new Phplot\\Phplot\\phplot_truecolor(80, 60);"
- name: See if PHPlot works with 'composer vendor/autoload.php'
run: composer create-project
- run: ls ${{ github.workspace }}
- run: php -r "require 'vendor/autoload.php'; \$plot=new Phplot\\Phplot\\phplot(80, 60);"
- run: php -r "require 'vendor/autoload.php'; \$plot=new Phplot\\Phplot\\phplot_truecolor(80, 60);"
- name: End Status
run: echo "🍏 This job's status is ${{ job.status }}."