Update 404.html #62
This file contains hidden or 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: DevOps | |
| on: | |
| [push] | |
| env: | |
| NODE_LAST_VERSION: '25' | |
| PHP_LAST_VERSION: '8.5' | |
| jobs: | |
| ############################################################################## | |
| # Test WordPress theme | |
| # | |
| test_assets: | |
| runs-on: ubuntu-latest | |
| name: Test Assets (javascript and styles) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: ['25'] | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v6 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run eslint (*.js) | |
| run: npm run eslint | |
| - name: Run stylelint (*.css) | |
| run: npm run stylelint | |
| test_php: | |
| runs-on: ubuntu-latest | |
| name: Test PHP | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: ['8.5'] | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v6 | |
| - name: Use PHP ${{ matrix.php-version }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: composer:v2 | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: Install dependencies | |
| run: composer install --prefer-dist | |
| - name: Run test suite | |
| run: composer run-script test | |
| ############################################################################## | |
| # Markdownlint | |
| # | |
| test_markdownlint: | |
| runs-on: ubuntu-latest | |
| name: MarkdownLint | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v6 | |
| - name: markdownlint-cli | |
| uses: nosborn/github-action-markdown-cli@v3.5.0 | |
| with: | |
| files: "*.md" | |
| config_file: ".markdownlint.yaml" |