From b612d75f053efdb78e07a35c6e7e26741744f64e Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 26 Jan 2020 21:39:32 +0100 Subject: [PATCH] No more drone. Do it all on github actions Signed-off-by: Roeland Jago Douma --- .drone.yml | 19 ------------------- .github/workflows/nodejs.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 19 deletions(-) delete mode 100644 .drone.yml create mode 100644 .github/workflows/nodejs.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 444106626..000000000 --- a/.drone.yml +++ /dev/null @@ -1,19 +0,0 @@ -kind: pipeline -name: webpack - -steps: - - name: build - image: nextcloudci/node:node-4 - commands: - - npm ci - - npm run build - - name: changes - image: nextcloudci/node:node-4 - commands: - - git status - - bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && exit 1 )" - -trigger: - branch: - - master - - stable* diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 000000000..df207ce32 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,32 @@ +name: Node CI + +on: + pull_request: + branches: + - master + - stable* + +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 install, build + run: | + npm ci + npm run build --if-present + - name: check webpack build + run: | + bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )" + env: + CI: true