diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-02-27 11:06:56 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-02-27 11:25:54 +0300 |
commit | 8c2d5fe4f8b8d786dbd54203d1e43782c6c601d7 (patch) | |
tree | 42efefae5541caccba9fb820f136fbf113c15cdd | |
parent | 1a3a9affddc46f77dba35c2e76cbd8079248370d (diff) |
Move to github actions
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-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 )" |