Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 161da1c

Browse files
committed
Add a bit of CI
1 parent 7e5df60 commit 161da1c

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Main
2+
on:
3+
- push
4+
- pull_request_target
5+
jobs:
6+
ci:
7+
name: CI
8+
runs-on: ubuntu-latest
9+
env:
10+
CI: true
11+
steps:
12+
- uses: actions/checkout@master
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: 14.x
16+
cache: yarn
17+
- name: Compile
18+
run: |
19+
yarn install --frozen-lockfile
20+
yarn compile
21+
automerge:
22+
name: AutoMerge
23+
needs: ci
24+
runs-on: ubuntu-latest
25+
if: github.event_name == 'pull_request_target' && (github.actor == github.repository_owner || github.actor == 'dependabot[bot]')
26+
steps:
27+
- uses: actions/github-script@v3
28+
with:
29+
script: |
30+
github.pulls.merge({
31+
owner: context.payload.repository.owner.login,
32+
repo: context.payload.repository.name,
33+
pull_number: context.payload.pull_request.number
34+
})

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ vsc-extension-quickstart.md
1010
**/*.map
1111
**/*.ts
1212

13+
.github
1314
.token
1415
test.rb

0 commit comments

Comments
 (0)