backupscript/.gitea/workflows/build.yaml
Jens True 55cdcd86b6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Build and test / requirements (push) Successful in 2m26s
File names for output
2023-11-16 13:13:57 +00:00

44 lines
1.3 KiB
YAML

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