Resetting the state of transfer statuses #2
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: Tests | |
on: | |
push: | |
pull_request: | |
permissions: read-all | |
env: | |
INSTANCE: docs/laravel-lang | |
ARTIFACT: webHelpLARAVEL-LANG2-all.zip | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv | |
coverage: xdebug | |
- name: Configure git | |
run: git config --global --add safe.directory /github/workspace | |
- name: Install dependencies | |
run: composer update --no-progress --no-interaction | |
- name: Clone projects | |
run: | | |
rm -rf tmp/attributes | |
rm -rf tmp/http-statuses | |
rm -rf tmp/lang | |
git clone --no-tags --single-branch https://github.com/Laravel-Lang/attributes.git tmp/attributes | |
git clone --no-tags --single-branch https://github.com/Laravel-Lang/http-statuses.git tmp/http-statuses | |
git clone --no-tags --single-branch https://github.com/Laravel-Lang/lang.git tmp/lang | |
- name: Move completion statuses | |
run: | | |
php src/statuses.php | |
php src/available.php | |
- name: Build documentation | |
uses: JetBrains/writerside-github-action@v4 | |
with: | |
instance: ${{ env.INSTANCE }} | |
artifact: ${{ env.ARTIFACT }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: docs | |
path: | | |
artifacts/${{ env.ARTIFACT }} | |
artifacts/report.json | |
retention-days: 7 | |
- name: Upload algolia-indexes | |
uses: actions/upload-artifact@v3 | |
with: | |
name: algolia-indexes | |
path: artifacts/${{ env.ALGOLIA_ARTIFACT }} | |
retention-days: 7 | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: docs | |
path: artifacts | |
- name: Test documentation | |
uses: JetBrains/writerside-checker-action@v1 | |
with: | |
instance: ${{ env.INSTANCE }} |