Add themes api entrypoint #17
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
on: [pull_request] | |
name: Main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure Git to trust the repository directory | |
run: git config --global --add safe.directory /app | |
- uses: actions/checkout@v3 | |
- name: Install Composer | |
uses: php-actions/composer@v6 | |
with: | |
php_version: 8.2 | |
# Fix permissions before composer operations | |
# If not some composer operations that need to update autoloader files will fail | |
- name: Fix directory permissions | |
run: sudo chown -R $USER:$USER . | |
- name: Install Dependencies | |
run: composer install | |
- name: Cache composer store | |
uses: actions/cache@v3 | |
with: | |
path: ~/vendor | |
key: ${{ runner.OS }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-composer- | |
- name: Lint PHP | |
run: find . -name "*.php" -type f -not -path "./vendor/*" -exec php -l {} \; | |
- name: Lint Style | |
run: vendor/bin/php-cs-fixer fix --diff --dry-run | |