Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Move npm jobs from Travis to Github Actions #1966

Merged
merged 3 commits into from
Oct 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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