From fead79185b3e03fc94464a70cc40b9ac54d4b4af Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sun, 30 May 2021 23:22:27 +0200 Subject: [PATCH] CI: Run ESLint job with GitHub Actions --- .github/workflows/ci-eslint.yml | 21 +++++++++++++++++++++ .travis.yml | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci-eslint.yml diff --git a/.github/workflows/ci-eslint.yml b/.github/workflows/ci-eslint.yml new file mode 100644 index 000000000..7a5c4337f --- /dev/null +++ b/.github/workflows/ci-eslint.yml @@ -0,0 +1,21 @@ +name: CI ESLint + +on: + push: + branches: + - '*' + pull_request: + branches: [ master ] + +jobs: + eslint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Install ESLint + run: npm install eslint@5.12.0 eslint-config-google@0.11.0 eslint-plugin-html@5.0.0 eslint-plugin-php-markup@0.2.5 + - name: Run ESLint + run: npx eslint --ext .php,.js . diff --git a/.travis.yml b/.travis.yml index c370e9318..5a845aff7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,6 @@ install: - update-binfmts --enable qemu-arm env: - - SMPFLAGS=-j4 OS=eslint DIST=eslint - SMPFLAGS=-j4 OS=ubuntu DIST=bionic DOCKER_REPO=iconzm/packpack compiler: