From ef551768bb1632065993351e012fdfd593c2d8de Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 29 Jan 2020 16:46:11 +0000 Subject: [PATCH] Switched to GitHub Actions for lint testing no issue --- .github/workflows/lint.yml | 17 +++++++++++++++++ .travis.yml | 8 +------- 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..d9150d4aff --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Lint Check +on: + pull_request: + push: + branches: + - master + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '10' + - run: yarn install + - run: yarn lint diff --git a/.travis.yml b/.travis.yml index 6d6cb99f01..d83bafe5d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,19 +13,13 @@ env: matrix: - DB=sqlite3 NODE_ENV=testing - DB=mysql NODE_ENV=testing-mysql -matrix: - include: - - node_js: '10' - env: TEST_SUITE=lint install: - yarn before_script: - if [ $DB == "mysql" ]; then mysql -e 'create database ghost_testing'; fi - if [ "$DB" == "sqlite3" ]; then yarn add --force sqlite3; fi script: | - if [ "$TEST_SUITE" == "lint" ]; then - yarn lint - elif [[ "$TRAVIS_PULL_REQUEST_BRANCH" =~ ^renovate || "$TRAVIS_EVENT_TYPE" == "cron" ]]; then + if [[ "$TRAVIS_PULL_REQUEST_BRANCH" =~ ^renovate || "$TRAVIS_EVENT_TYPE" == "cron" ]]; then yarn ci:regression else yarn ci