Migrate from Travis to Github Actions (#1517)
This commit is contained in:
parent
56a8114f28
commit
d6ccb97e0b
4 changed files with 88 additions and 71 deletions
23
.github/workflows/lint-css.yml
vendored
Normal file
23
.github/workflows/lint-css.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: CSS Code Linting
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
lint-css:
|
||||
name: Lint CSS
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the git repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v1
|
||||
- name: npm install
|
||||
run: npm install
|
||||
- name: Lint CSS
|
||||
run: npm run lint:scss
|
23
.github/workflows/lint-js.yml
vendored
Normal file
23
.github/workflows/lint-js.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: JS Code Linting
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
lint-js:
|
||||
name: Lint JS
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the git repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v1
|
||||
- name: npm install
|
||||
run: npm install
|
||||
- name: Lint JS
|
||||
run: npm run lint:js
|
42
.github/workflows/lint-php.yml
vendored
Normal file
42
.github/workflows/lint-php.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
name: PHP Code Linting
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
lint-php:
|
||||
name: Parallel lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout the git repository
|
||||
uses: actions/checkout@v2
|
||||
- name: PHP setup
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
- name: Install composer packages
|
||||
run: composer install --no-progress
|
||||
- name: Check for PHP errors
|
||||
run: composer lint:php
|
||||
|
||||
phpcs_check:
|
||||
name: PHPCS check
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout the git repository
|
||||
uses: actions/checkout@v2
|
||||
- name: PHP setup
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
- name: Install composer packages
|
||||
run: composer install --no-progress
|
||||
- name: Check coding standards using PHPCS
|
||||
run: composer lint:wpcs
|
Loading…
Add table
Add a link
Reference in a new issue