From 62cc01e46b2d51c7d4ea7e287711aeba2ab8ae44 Mon Sep 17 00:00:00 2001 From: Taylor Lovett Date: Tue, 11 Jul 2023 10:38:06 -0400 Subject: [PATCH] Add linting action --- .github/workflows/lint.yml | 52 ++++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 53 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..be24791 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,52 @@ +name: Linting +on: + pull_request: + branches: + - master + - develop + push: + branches: + - master + - develop +jobs: + stylelint: + name: stylelint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: stylelint + uses: reviewdog/action-stylelint@v1 + with: + reporter: github-pr-review + stylelint_input: '**/*.css' + stylelint_config: 'stylelint.config.js' + fail_on_error: true + eslint: + name: eslint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '16' + - name: eslint + uses: reviewdog/action-eslint@v1 + with: + reporter: github-pr-review + fail_on_error: true + phpcs: + name: phpcs + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set PHP version + uses: shivammathur/setup-php@v2 + with: + php-version: '7.3' + coverage: none + tools: composer:v2 + - name: composer install + run: composer install + - name: PHPCS check + run: ./vendor/bin/phpcs . diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d8c318..43372b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file, per [the Ke * Remove WP Acceptance * Upgrade build process to 10up Toolkit * Upgrade Plugin Update Checker +* Allow SSO to be turned off in the admin ## [1.10.1] - 2022-09-13 ### Fixed