-
Notifications
You must be signed in to change notification settings - Fork 173
36 lines (34 loc) · 982 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Node CI
on: [push, pull_request]
jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/[email protected]
- name: Check file formatting against EditorConfig
uses: editorconfig-checker/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm test
env:
CI: true
merge-me:
name: Auto-merge dependency updates
needs: test
runs-on: ubuntu-latest
steps:
- uses: ridedott/[email protected]
with:
GITHUB_LOGIN: 'dependabot[bot]'
# We need to use a custom token to trigger a build for the merge
# Using the default token doesn't do this.
GITHUB_TOKEN: ${{ secrets.GH_MERGE_TOKEN }}
MERGE_METHOD: MERGE