Sliming down attempt
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -1,44 +0,0 @@
|
||||
name: Build and test
|
||||
run-name: Perform a regular build and test
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
requirements:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.2'
|
||||
extensions: mbstring, xml, curl, zip
|
||||
tools: composer, phpdoc
|
||||
coverage: xdebug
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
composer config github-oauth.github.com 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
|
||||
composer install
|
||||
wget https://downloads.rclone.org/rclone-current-linux-amd64.deb
|
||||
dpkg -i rclone-current-linux-amd64.deb
|
||||
- name: Dry run
|
||||
run: ./backup show config.example.yml
|
||||
- name: Static analysis
|
||||
run: composer analyze
|
||||
- name: Test
|
||||
run: composer test-full
|
||||
- name: Upload Test report
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: output/test.html
|
||||
name: test.html
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: output/coverage
|
||||
name: test-coverage.zip
|
||||
- name: Document
|
||||
run: phpdoc run
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: output/docs
|
||||
name: documentation.zip
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -7,4 +7,6 @@ config.yml
|
||||
*.phar
|
||||
*.deb
|
||||
.phpunit.result.cache
|
||||
*cache/
|
||||
*cache/
|
||||
rclone
|
||||
rclone.conf
|
@ -1,4 +1,4 @@
|
||||
FROM php:8.3-cli
|
||||
FROM php:8.4-cli
|
||||
COPY . /app
|
||||
|
||||
WORKDIR /app
|
@ -5,14 +5,14 @@
|
||||
Backup script utilizing Rclone to backup local file systems and send notifications.
|
||||
|
||||
# Minimum requirements
|
||||
- PHP8.1
|
||||
- PHP8.4
|
||||
- Composer to install required packages.
|
||||
- Rclone installed
|
||||
|
||||
# Rclone install
|
||||
rm rclone-current-linux-amd64.deb
|
||||
wget https://downloads.rclone.org/rclone-current-linux-amd64.deb
|
||||
sudo dpkg -i rclone-current-linux-amd64.deb
|
||||
rm rclone-current-linux-amd64.deb
|
||||
|
||||
# For development
|
||||
|
||||
@ -20,7 +20,7 @@ sudo dpkg -i rclone-current-linux-amd64.deb
|
||||
curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
sudo apt install php8.3-cli php8.3-xml php8.3-curl php8.3-zip php8.3-xdebug php8.3-mbstring unzip wget graphviz plantuml
|
||||
sudo apt install php8.34-cli php8.4-xml php8.34-curl php8.4-zip php8.4-xdebug php8.4-mbstring unzip wget graphviz plantuml
|
||||
|
||||
# PHP Docs
|
||||
rm phpDocumentor.phar
|
||||
|
Reference in New Issue
Block a user