diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2020-02-27 11:30:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 11:30:45 +0300 |
commit | 17ef5b0330d658de77ce17fa947fb2fa52e40327 (patch) | |
tree | 35104837d4e04a0a867aa11a33a0a9afb00be630 | |
parent | 8872ca010ac3b9dffb97a51677cc36643a782910 (diff) | |
parent | 65d90ca6db481120af719bedaf5e201de492ad0a (diff) |
Merge pull request #158 from nextcloud/backport/154/stable16v16.0.9RC2v16.0.9RC1v16.0.9v16.0.11RC1v16.0.11v16.0.10RC2v16.0.10RC1v16.0.10stable16
[stable16] Move to github actions
-rw-r--r-- | .drone.yml | 20 | ||||
-rw-r--r-- | .github/workflows/dependabot-approve.yml | 11 | ||||
-rw-r--r-- | .github/workflows/node.yml | 34 |
3 files changed, 45 insertions, 20 deletions
diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index a9e2de3..0000000 --- a/.drone.yml +++ /dev/null @@ -1,20 +0,0 @@ -kind: pipeline -name: jsunit - -steps: - - name: vue-build - image: nextcloudci/node:node-4 - commands: - - find js/ -type f -delete - - npm install - - 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 diff --git a/.github/workflows/dependabot-approve.yml b/.github/workflows/dependabot-approve.yml new file mode 100644 index 0000000..cc5e6d1 --- /dev/null +++ b/.github/workflows/dependabot-approve.yml @@ -0,0 +1,11 @@ +name: Dependabot auto approve +on: pull_request + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: hmarr/auto-approve-action@v2.0.0 + if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml new file mode 100644 index 0000000..d5c403d --- /dev/null +++ b/.github/workflows/node.yml @@ -0,0 +1,34 @@ +name: Node + +on: + pull_request: + push: + branches: + - master + - stable* + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-versions: [12.x] + + name: node${{ matrix.node-versions }} + steps: + - uses: actions/checkout@v2 + + - name: Set up node ${{ matrix.node-versions }} + uses: actions/setup-node@v1 + with: + node-versions: ${{ matrix.node-versions }} + + - name: Install dependencies & build + run: | + npm ci + npm run build --if-present + + - name: Check webpack build changes + run: | + bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )" |