Skip to content

Commit

Permalink
ci: should work
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 28, 2020
1 parent 48c344e commit bb51212
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "weekly"
26 changes: 26 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on: pull_request

name: Auto merge Dependabot

jobs:
automerge:
needs: [Test, Lint]
runs-on: ubuntu-latest
if: |
github.actor == 'dependabot[bot]' &&
github.event_name == 'pull_request' &&
startsWith(github.event.pull_request.title, 'chore(deps-dev):')
steps:
- name: '@dependabot merge'
uses: actions/github-script@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
await github.issues.createComment({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
issue_number: context.payload.pull_request.number,
body: '@dependabot merge'
})
25 changes: 25 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2

jobs:
build:
docker:
- image: circleci/node:12

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- dependencies-cache-v1-{{ checksum "yarn.lock" }}
- dependencies-cache-v1-

- run: yarn install

- save_cache:
paths:
- node_modules
key: dependencies-cache-v1-{{ checksum "yarn.lock" }}

- run: yarn run build

0 comments on commit bb51212

Please sign in to comment.