From ea98ee4df9a83f00164f73237d67729bba4e92f2 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Thu, 7 Jan 2021 12:29:48 +0100 Subject: [PATCH] add github action for linting (#1395) and remove travis-ci --- .github/workflows/lint.yml | 13 +++++++++ .travis.yml | 57 -------------------------------------- 2 files changed, 13 insertions(+), 57 deletions(-) create mode 100644 .github/workflows/lint.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..93baa23ac --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,13 @@ +name: lint + +on: [pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + - run: npm install + - run: npx gulp stylelint + - run: npx gulp eslint diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0193d2d69..000000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -dist: trusty -sudo: required -language: node_js -cache: - - node_modules -node_js: - - lts/* -jdk: oraclejdk8 - -#before_script: -# - sudo safaridriver --enable -# - defaults write com.apple.Safari IncludeDevelopMenu YES -# - defaults write com.apple.Safari AllowRemoteAutomation 1 -# - defaults write com.apple.Safari LocalFileRestrictionsEnabled 0 -# - defaults write com.apple.Safari WebKit2ICECandidateFilteringEnabled 0 -# - defaults write com.apple.Safari WebKit2MockCaptureDevicesEnabled 1 -# - defaults write com.apple.Safari WebKit2MediaCaptureRequiresSecureConnection 0 - -branches: - only: - - gh-pages - -script: - - npm test - -matrix: - include: - - name: "Chrome Stable" - env: BROWSER=chrome - addons: - chrome: stable - - name: "Firefox Stable" - env: BROWSER=firefox - addons: - firefox: latest - allow_failures: - - name: "Chrome Beta" - env: BROWSER=chrome - addons: - chrome: beta - - name: "Firefox Beta" - env: BROWSER=firefox - addons: - firefox: latest-beta -# - name: "Safari" -# env: BROWSER=safari -# - name: "Firefox ESR" -# env: BROWSER=firefox -# addons: -# firefox: latest-esr - -notifications: - email: - recipients: - forward-webrtc-github@webrtc.org - on_success: change - on_failure: always