Skip to content

Commit

Permalink
Move frontend build to github actions (#243)
Browse files Browse the repository at this point in the history
Move frontend build to github actions
  • Loading branch information
juliusknorr authored Dec 27, 2019
2 parents 2b94139 + 5169344 commit a1a143b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,31 +110,3 @@ trigger:
event:
- pull_request
- push

---
kind: pipeline
name: vue

steps:
- name: eslint
image: nextcloudci/node:node-4
commands:
- npm install
- npm run lint

- name: vue-build
image: nextcloudci/node:node-4
commands:
- find js/ -type f ! -name 'activate.js' ! -name 'personalsettings.js' ! -name 'about.js' -delete
- npm ci
- npm run build
- git status
- bash -c "[[ ! \"`git status --porcelain js/`\" ]] || ( echo 'Uncommited changes in vue build' && exit 1 )"

trigger:
branch:
- master
- stable*
event:
- pull_request
- push
33 changes: 33 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm ci, build
run: |
find js/ -type f ! -name 'activate.js' ! -name 'personalsettings.js' ! -name 'about.js' -delete
npm ci
npm run build --if-present
- name: lint
run: |
npm run lint
- name: check webpack build
run: |
git status
bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )"
env:
CI: true

0 comments on commit a1a143b

Please sign in to comment.