fix: fix image markdown in obs studio blog post #250
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: "Test and Deploy" | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
run: | |
runs-on: ubuntu-22.04 | |
env: | |
extensions: bcmath, bz2, curl, gd, intl, ldap, mbstring, opcache, readline, sqlite3, tidy, xml, xsl, zip, :php-psr | |
ini-values: memory_limit=-1 | |
key: mwop_net | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup cache | |
id: extcache | |
uses: shivammathur/cache-extensions@v1 | |
with: | |
php-version: "8.2" | |
extensions: ${{ env.extensions }} | |
key: ${{ env.key }} | |
- name: Cache extensions | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.extcache.outputs.dir }} | |
key: ${{ steps.extcache.outputs.key }} | |
restore-keys: ${{ steps.extcache.outputs.key }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
php-version: "8.2" | |
extensions: ${{ env.extensions }} | |
ini-values: ${{ env.ini-values }} | |
coverage: none | |
tools: cs2pr, composer:v2 | |
- name: Install dependencies | |
run: composer install --ignore-platform-req=php --ignore-platform-req=ext-zendhq | |
- name: Setup PHPUnit problem matchers | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Run tests | |
run: ./vendor/bin/phpunit | |
- name: Run CS checks | |
run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr | |
- name: Deploy | |
uses: appleboy/ssh-action@master | |
env: | |
REPO_NAME: ${{ github.repository }} | |
SHA: ${{ github.sha }} | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
key: ${{ secrets.SSH_KEY }} | |
envs: REPO_NAME,SHA | |
script_stop: true | |
script: | | |
/usr/local/bin/deploy.sh "${REPO_NAME}" "${SHA}" |