Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test workflow #2

Merged
merged 53 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
aaa814f
Add test workflow
Chance-fyi Apr 10, 2024
9074041
ci
Chance-fyi Apr 10, 2024
c0f4358
ci
Chance-fyi Apr 10, 2024
b806879
ci
Chance-fyi Apr 10, 2024
a000757
ci
Chance-fyi Apr 10, 2024
82aa453
ci
Chance-fyi Apr 10, 2024
4004255
ci
Chance-fyi Apr 10, 2024
a283244
ci
Chance-fyi Apr 10, 2024
bab6624
ci
Chance-fyi Apr 10, 2024
93f9fc5
ci
Chance-fyi Apr 10, 2024
5304649
ci
Chance-fyi Apr 10, 2024
3a4ec95
ci
Chance-fyi Apr 10, 2024
200db71
ci
Chance-fyi Apr 10, 2024
812534f
ci
Chance-fyi Apr 10, 2024
edc5f4e
ci
Chance-fyi Apr 10, 2024
e12f79c
ci
Chance-fyi Apr 10, 2024
e1a2892
ci
Chance-fyi Apr 10, 2024
8be4a76
ci
Chance-fyi Apr 10, 2024
486a730
ci
Chance-fyi Apr 10, 2024
54932da
ci
Chance-fyi Apr 10, 2024
ea4f5d2
ci
Chance-fyi Apr 10, 2024
8c59d3f
ci
Chance-fyi Apr 10, 2024
81e830d
ci
Chance-fyi Apr 10, 2024
16de435
ci
Chance-fyi Apr 10, 2024
0f2a207
ci
Chance-fyi Apr 10, 2024
039604b
ci
Chance-fyi Apr 10, 2024
e0b46fe
ci
Chance-fyi Apr 10, 2024
4f11650
ci
Chance-fyi Apr 10, 2024
49b599d
ci
Chance-fyi Apr 10, 2024
8b5843e
ci
Chance-fyi Apr 10, 2024
8fda9cc
ci
Chance-fyi Apr 10, 2024
f487a99
ci
Chance-fyi Apr 10, 2024
ca572ee
ci
Chance-fyi Apr 10, 2024
d792b59
ci
Chance-fyi Apr 10, 2024
4408b67
ci
Chance-fyi Apr 10, 2024
dfeb150
fix ci
aooohan Apr 10, 2024
28d160f
fix ci
aooohan Apr 10, 2024
6ac1812
fix ci
aooohan Apr 10, 2024
16c8eb7
fix ci
aooohan Apr 10, 2024
6f44398
fix ci
aooohan Apr 10, 2024
4667259
fix ci
aooohan Apr 10, 2024
9cf3cef
fix ci
aooohan Apr 10, 2024
627f44c
fix ci
aooohan Apr 10, 2024
3b20dc0
fix ci
aooohan Apr 10, 2024
920e8e0
fix ci
aooohan Apr 10, 2024
c4cc7a6
ci
Chance-fyi Apr 10, 2024
d8e651c
ci
Chance-fyi Apr 10, 2024
fcdc4d8
fix ci
aooohan Apr 10, 2024
89c88aa
fix ci
aooohan Apr 10, 2024
32a9f0e
fix ci
aooohan Apr 10, 2024
b6f3cf2
fix ci
aooohan Apr 10, 2024
85a3ec7
fix ci
aooohan Apr 10, 2024
609a866
ci
Chance-fyi Apr 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/test-linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test linux workflow

on:
pull_request:
push:
schedule:
- cron: 0 0 * * 5

jobs:
plugin-test-linux:
strategy:
matrix:
# ref: https://github.com/actions/runner-images
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: install vfox (Linux)
run: |
echo "deb [trusted=yes] https://apt.fury.io/versionfox/ /" | sudo tee /etc/apt/sources.list.d/versionfox.list
sudo apt-get update
sudo apt-get install vfox

- name: Install packages
run: sudo apt-get update && sudo apt-get install -y autoconf bison build-essential curl gettext git libgd-dev libcurl4-openssl-dev libedit-dev libicu-dev libjpeg-dev libmysqlclient-dev libonig-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libzip-dev openssl pkg-config re2c zlib1g-dev

- name: Generate PHP plugin
run: |
zip -r php.zip ./

- name: Test
run: |
vfox add -s php.zip
vfox install php@latest
vfox use -p php@$(vfox list php | sed -n 's/-> v//p')
eval "$(vfox activate bash)"
php -v
php -m
composer -V
40 changes: 40 additions & 0 deletions .github/workflows/test-macos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test macos workflow

on:
pull_request:
push:
schedule:
- cron: 0 0 * * 5

jobs:
plugin-test-macos:
strategy:
matrix:
# ref: https://github.com/actions/runner-images
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: install vfox (MacOS)
run: |
brew tap version-fox/tap
brew install vfox

- name: Generate PHP plugin
run: |
zip -r php.zip ./

- name: Install packages
run: brew install autoconf automake bison freetype gd gettext icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip pkg-config re2c zlib

- name: Test
shell: bash
run: |
vfox add -s php.zip
vfox install php@latest
vfox use -p php@$(vfox list php | sed -n 's/-> v//p')
eval "$(vfox activate bash)"
php -v
php -m
composer -V
34 changes: 34 additions & 0 deletions .github/workflows/test-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test windows workflow

on:
pull_request:
push:
schedule:
- cron: 0 0 * * 5

jobs:
plugin-test-windows:
strategy:
matrix:
# ref: https://github.com/actions/runner-images
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: install vfox and test (Windows)
shell: pwsh
run: |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop install vfox
Compress-Archive -Path .\* -DestinationPath .\php.zip
vfox -v
vfox add -s php.zip
vfox install php@latest
vfox use -p php@$(vfox list php | sed -n 's/-> v//p')
Invoke-Expression "$(vfox activate pwsh)"
php -v
php -m
composer -V
Loading