Skip to content

chore: Update GitHub workflow to use composer for dependency manageme… #17

chore: Update GitHub workflow to use composer for dependency manageme…

chore: Update GitHub workflow to use composer for dependency manageme… #17

name: PHP tests on alpine
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
container: php:8.2-fpm-alpine
steps:
- name: Checkout code
run: |
apk add git
git clone https://github.com/kiwilan/php-filelist.git
cd php-filelist
ls
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install scout-seeker
run: |
apk add rustup
apk add build-base
cargo install scout-seeker
- name: Install dependencies
run: |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
cd php-filelist && composer install
- name: Execute tests
run: |
ls
cd php-filelist && vendor/bin/pest --ci