diff options
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r-- | .github/workflows/lint.yml | 69 |
1 files changed, 42 insertions, 27 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e50644f..229fb498 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,36 +1,51 @@ name: Lint -on: pull_request + +on: + pull_request: + push: + branches: + - master + - stable* jobs: - php-linters: + php: runs-on: ubuntu-latest + strategy: matrix: - php-versions: ['7.2', '7.3', 7.4] - name: php${{ matrix.php-versions }} lint + php-versions: ['7.2', '7.3', '7.4'] + + name: php${{ matrix.php-versions }} steps: - - name: Checkout - uses: actions/checkout@master - - name: Set up php${{ matrix.php-versions }} - uses: shivammathur/setup-php@master - with: - php-version: ${{ matrix.php-versions }} - coverage: none - - name: Lint - run: composer run lint - - node-linters: + - uses: actions/checkout@v2 + + - name: Set up php ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v1 + with: + php-version: ${{ matrix.php-versions }} + coverage: none + + - name: Lint + run: composer run lint + + node: runs-on: ubuntu-latest - name: ESLint + + strategy: + matrix: + node-versions: [12.x] + + name: node${{ matrix.node-versions }} steps: - - uses: actions/checkout@master - - name: Set up Node - uses: actions/setup-node@v1 - with: - node-version: 12.x - - name: npm install - run: npm ci - - name: eslint - run: npm run lint - env: - CI: true + - uses: actions/checkout@v2 + + - name: Set up node ${{ matrix.node-versions }} + uses: actions/setup-node@v1 + with: + node-versions: ${{ matrix.node-versions }} + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint |