Bump @wordpress/stylelint-config from 21.21.0 to 21.22.0 #1811
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: "CI" | |
on: | |
push: | |
branches: "*" | |
pull_request: | |
env: | |
php-version: 8.1 | |
cache-version: 1 | |
jobs: | |
translation-sync: | |
name: "Translation sync check" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Install gettext" | |
run: | | |
sudo apt-get install gettext | |
- name: "Cache NPM dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: "~/.npm" | |
key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
restore-keys: | | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- | |
npm-dependencies-${{ runner.os }}- | |
- name: "Install NPM dependencies" | |
run: | | |
npm ci | |
- name: "Update translations" | |
run: | | |
npm run update-translations | |
- name: "Check for clean repo" | |
run: | | |
[ -z "$(git status --porcelain)" ] || (c=$?; git status; (exit $c)) | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Install gettext" | |
run: | | |
sudo apt-get install gettext | |
- name: "Setup PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ env.php-version }} | |
coverage: none | |
- name: "Cache Composer dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: "~/.composer/cache" | |
key: composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('composer.json') }} | |
restore-keys: | | |
composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('composer.json') }} | |
composer-dependencies-${{ runner.os }}-${{ env.cache-version }}- | |
composer-dependencies-${{ runner.os }}- | |
- name: "Install Composer dependencies" | |
run: | | |
composer install -n --prefer-dist | |
- name: "Cache NPM dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: "~/.npm" | |
key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
restore-keys: | | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- | |
npm-dependencies-${{ runner.os }}- | |
- name: "Install NPM dependencies" | |
run: | | |
npm ci | |
- name: "Build" | |
run: | | |
npm run build | |
lint: | |
name: "Lint" | |
runs-on: ubuntu-latest | |
env: | |
php-extensions: ast | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Setup PHP extension caching" | |
id: extcache | |
uses: shivammathur/cache-extensions@v1 | |
with: | |
php-version: ${{ env.php-version }} | |
extensions: ${{ env.php-extensions }} | |
key: php-extensions-${{ runner.os }}-${{ env.cache-version }} | |
- name: "Cache extensions" | |
uses: actions/cache@v3 | |
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 | |
with: | |
php-version: ${{ env.php-version }} | |
extensions: ${{ env.php-extensions }} | |
coverage: none | |
- name: "Cache Composer dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: "~/.composer/cache" | |
key: composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('composer.json') }} | |
restore-keys: | | |
composer-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('composer.json') }} | |
composer-dependencies-${{ runner.os }}-${{ env.cache-version }}- | |
composer-dependencies-${{ runner.os }}- | |
- name: "Install Composer dependencies" | |
run: | | |
composer install -n --prefer-dist | |
- name: "Cache NPM dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: "~/.npm" | |
key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
restore-keys: | | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- | |
npm-dependencies-${{ runner.os }}- | |
- name: "Install NPM dependencies" | |
run: | | |
npm ci | |
- name: "Lint" | |
run: | | |
npm run lint |