This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
chore(deps): update eslint packages (major) #80
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: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
Test: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
name: ${{ matrix.os }} - Atom ${{ matrix.atom_channel }} - PHP ${{ matrix.php_version }} - PHPCS ${{ matrix.phpcs_version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
atom_channel: [stable, beta] | |
php_version: ['5.6', '7.2', '7.4', '8.0'] | |
phpcs_version: ['1.*', '2.*', '3.0.0', '*'] | |
exclude: | |
- phpcs_version: '1.*' | |
- phpcs_version: '2.*' | |
- phpcs_version: '3.0.0' | |
include: | |
# PHPCS v1.* only supports up to PHP 7.2 | |
- os: ubuntu-latest | |
atom_channel: stable | |
php_version: '7.2' | |
phpcs_version: '1.*' | |
# PHPCS v2.* only supports up to PHP 7.2 | |
- os: ubuntu-latest | |
atom_channel: stable | |
php_version: '7.2' | |
phpcs_version: '2.*' | |
# PHPCS v3.* only supports up to PHP 7.2 | |
- os: ubuntu-latest | |
atom_channel: stable | |
php_version: '7.2' | |
phpcs_version: '3.0.0' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Atom ${{ matrix.atom_channel }} | |
uses: UziTech/action-setup-atom@v1 | |
with: | |
channel: ${{ matrix.atom_channel }} | |
- name: Install PHP ${{ matrix.php_version }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
- name: Install PHPCS | |
run: composer global require "squizlabs/php_codesniffer ${{ matrix.phpcs_version }}" | |
- name: Versions | |
run: | | |
atom -v | |
apm -v | |
php -v | |
phpcs --version | |
- name: Install dependencies | |
run: apm install | |
- name: Run tests 👩🏾💻 | |
run: npm run test | |
Lint: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: UziTech/action-setup-atom@v1 | |
- name: Install dependencies | |
run: npm install | |
- name: Lint ✨ | |
run: npm run test.lint | |
CommitLint: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Commit lint ✨ | |
uses: wagoid/commitlint-github-action@v3 | |
Release: | |
needs: [Test, CommitLint, Lint] | |
if: github.ref == 'refs/heads/master' && | |
github.event.repository.fork == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: UziTech/action-setup-atom@v1 | |
- name: NPM install | |
run: npm install | |
- name: Release 🎉 | |
uses: cycjimmy/semantic-release-action@v2 | |
with: | |
extends: | | |
@semantic-release/apm-config | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }} | |
Skip: | |
if: contains(github.event.head_commit.message, '[skip ci]') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Skip CI 🚫 | |
run: echo skip ci |