0080e2da84
Run Tests / test (pull_request) Successful in 37s
Alpine 3.23 已無 php82 套件,改用 php84。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
name: Run Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
run: |
|
|
apk add --no-cache \
|
|
php84 php84-phar php84-mbstring php84-dom php84-fileinfo php84-gd \
|
|
php84-pdo php84-pdo_sqlite php84-sqlite3 php84-tokenizer \
|
|
php84-xml php84-xmlwriter php84-ctype php84-curl php84-openssl \
|
|
php84-json php84-session php84-iconv \
|
|
curl unzip
|
|
ln -sf /usr/bin/php84 /usr/local/bin/php
|
|
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --quiet
|
|
|
|
- name: Copy .env
|
|
run: cp .env.example .env
|
|
|
|
- name: Install Composer dependencies
|
|
run: composer install --prefer-dist --no-interaction --no-progress
|
|
|
|
- name: Generate application key
|
|
run: php artisan key:generate
|
|
|
|
- name: Run tests
|
|
run: php artisan test
|