fixing need build #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Deployment | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'fixing/**' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
name: ${{ matrix.operating-system }} - PHP ${{ matrix.php-versions }} | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ['8.2', '8.3'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP with PCOV | |
id: setup-php | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php-versions }}" | |
extensions: intl | |
coverage: pcov | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ steps.setup-php.outputs.php-version }}-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php-${{ steps.setup-php.outputs.php-version }}- | |
- name: Install dependencies | |
run: composer install | |
- name: Run test suite | |
run: composer run test | |
- shell: bash | |
run: | | |
which tar && tar -czvf coverage.tar.gz build/logs/html | |
- name: Upload coverage as artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mycoverage_${{ runner.os }}_${{ matrix.php-versions }} | |
path: coverage.tar.gz | |
overwrite: true | |
deploy: | |
name: Deploy Github Pages | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download coverage | |
uses: actions/download-artifact@v4 | |
with: | |
name: mycoverage_Linux_8.3 | |
path: coverage.tar.gz | |
overwrite: true | |
- name: Checking file location | |
run: | | |
echo ${{ github.workspace }} && ls && file ${{ github.workspace }}/coverage.tar.gz | |
- shell: bash | |
run: | | |
which tar && tar -xzvf coverage.tar.gz && cd build/logs/html && mv _js js && mv _css css && mv _icons icons && for x in $(grep . -irle '_js');do sed -i'' 's/_js/js/g' $x;done && for x in $(grep . -irle '_css');do sed -i'' 's/_css/css/g' $x;done && for x in $(grep . -irle '_icons');do sed -i'' 's/_icons/icons/g' $x;done | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }}/build/logs/html |