Skip to content

Commit

Permalink
chore: Add continuous integration (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Dec 5, 2020
1 parent bac4839 commit 20f7a24
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
pull-request-branch-name:
separator: '-'
target-branch: main
commit-message:
prefix: chore
include: scope
labels:
- "type: chore \U0001F9F9"
open-pull-requests-limit: 10
26 changes: 26 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Continuous Integration'

on: [pull_request, push]

jobs:
'Build':
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x]
steps:
- name: 'Checkout repository'
uses: actions/checkout@v2
- name: 'Use Node.js v${{ matrix.node-version }}'
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: 'Install, lint, and test'
run: |
yarn install
yarn lint
yarn test
if: |
contains(github.event.commits[0].message, '[skip ci]') == false &&
contains(github.event.commits[0].message, '[ci skip]') == false

0 comments on commit 20f7a24

Please sign in to comment.