Skip to content

Commit c790397

Browse files
authored
Merge pull request #3 from icelam/dependabot
chore: setup dependabot
2 parents 156f34b + 3bff896 commit c790397

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Basic dependabot.yml file with
2+
# https://docs.github.com/en/github/administering-a-repository/enabling-and-disabling-version-updates#example-dependabotyml-file
3+
4+
version: 2
5+
updates:
6+
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem
7+
- package-ecosystem: "npm"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"
11+
labels:
12+
- "dependencies"
13+
commit-message:
14+
prefix: "chore"
15+
prefix-development: "chore"
16+
include: "scope"
17+
ignore:
18+
- dependency-name: "husky"
19+
- dependency-name: "webpack"
20+
- dependency-name: "html-webpack-plugin"
21+
reviewers:
22+
- "icelam"
23+
open-pull-requests-limit: 5

.github/workflows/pull-request.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build test
2+
on: [pull_request]
3+
4+
jobs:
5+
check:
6+
name: Build
7+
runs-on: ubuntu-18.04
8+
steps:
9+
- name: Checkout repo
10+
uses: actions/checkout@master
11+
- name: Setup Node.js version
12+
uses: actions/setup-node@master
13+
with:
14+
node-version: '12.16.1'
15+
- name: Get yarn cache directory path
16+
id: yarn-cache-dir-path
17+
run: echo "::set-output name=dir::$(yarn cache dir)"
18+
- name: Restore yarn cache
19+
uses: actions/cache@v1
20+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
21+
with:
22+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
23+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
24+
restore-keys: |
25+
${{ runner.os }}-yarn-
26+
- name: Install dependencies
27+
run: |
28+
yarn install --frozen-lockfile
29+
- name: Build
30+
run: |
31+
yarn build

0 commit comments

Comments
 (0)