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