Skip to content

Commit

Permalink
Merge pull request #1966 from TomasVotruba/tv-ci-stylelint
Browse files Browse the repository at this point in the history
[CI] Move npm jobs from Travis to Github Actions
  • Loading branch information
bobdenotter committed Oct 12, 2020
2 parents dbf55d1 + e5da04d commit 45f3c60
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/assets_code_analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Assets Code Analysis

on:
pull_request: null
push:
branches:
- master

jobs:
asses_code_analysis:
strategy:
fail-fast: false
matrix:
actions:
-
name: Lint Javascript files
run: npm run lint

-
name: Lint on SCSS files
run: npm run stylelint

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# see https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml
-
name: Use Node.js 12.5
uses: actions/setup-node@v1
with:
node-version: 12.5

# same as "npm install", just uses package-lock.json", see https://stackoverflow.com/a/53325242/1348344
- run: npm ci

- run: ${{ matrix.actions.run }}
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ before_script:
- export PATH=$PATH:$PWD/vendor/bin

script:
# run EsLint on Javascript files
- npm run lint

# run StyleLint on SCSS
- npm run stylelint

# run PHP Unit
- ./vendor/bin/phpunit

Expand Down

0 comments on commit 45f3c60

Please sign in to comment.