File tree Expand file tree Collapse file tree 5 files changed +131
-4
lines changed Expand file tree Collapse file tree 5 files changed +131
-4
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : npm
4
+ directory : ' /'
5
+ schedule :
6
+ interval : daily
7
+ open-pull-requests-limit : 10
8
+ versioning-strategy : increase
9
+ - package-ecosystem : ' github-actions'
10
+ directory : ' /'
11
+ schedule :
12
+ interval : daily
13
+ - package-ecosystem : gitsubmodule
14
+ directory : ' /'
15
+ schedule :
16
+ interval : daily
Original file line number Diff line number Diff line change
1
+ name : ' CodeQL'
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ # The branches below must be a subset of the branches above
8
+ branches : [master]
9
+ schedule :
10
+ - cron : ' 0 0 * * 0'
11
+
12
+ jobs :
13
+ analyze :
14
+ name : Analyze
15
+ runs-on : ubuntu-latest
16
+ permissions :
17
+ actions : read
18
+ contents : read
19
+ security-events : write
20
+
21
+ steps :
22
+ - name : Checkout repository
23
+ uses : actions/checkout@v2
24
+ with :
25
+ submodules : recursive
26
+
27
+ - name : Initialize CodeQL
28
+ uses : github/codeql-action/init@v1
29
+ with :
30
+ languages : ' javascript'
31
+
32
+ - name : Perform CodeQL Analysis
33
+ uses : github/codeql-action/analyze@v1
Original file line number Diff line number Diff line change
1
+ # Based on https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
2
+ name : Dependabot auto-merge
3
+ on : pull_request_target
4
+
5
+ permissions :
6
+ pull-requests : write
7
+ contents : write
8
+
9
+ jobs :
10
+ dependabot :
11
+ runs-on : ubuntu-latest
12
+ if : ${{ github.actor == 'dependabot[bot]' }}
13
+ steps :
14
+ - name : Dependabot metadata
15
+ id : metadata
16
+ uses :
dependabot/[email protected]
17
+ with :
18
+ github-token : ' ${{ secrets.GITHUB_TOKEN }}'
19
+ - name : Enable auto-merge for Dependabot PRs
20
+ # Automatically merge semver-patch and semver-minor PRs
21
+ if : " ${{ steps.metadata.outputs.update-type ==
22
+ 'version-update:semver-minor' ||
23
+ steps.metadata.outputs.update-type ==
24
+ 'version-update:semver-patch' }}"
25
+ run : gh pr merge --auto --squash "$PR_URL"
26
+ env :
27
+ PR_URL : ${{github.event.pull_request.html_url}}
28
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change
1
+ name : Node.js CI
2
+
3
+ on :
4
+ push :
5
+ branches-ignore :
6
+ - ' dependabot/**'
7
+ pull_request :
8
+
9
+ env :
10
+ CI : true
11
+ FORCE_COLOR : 2
12
+
13
+ jobs :
14
+ lint :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ with :
19
+ submodules : recursive
20
+ - uses : actions/setup-node@v2
21
+ with :
22
+ node-version : lts/*
23
+ cache : npm
24
+ - run : npm ci
25
+ - run : npm run lint
26
+
27
+ test :
28
+ name : Node ${{ matrix.node }}
29
+ runs-on : ubuntu-latest
30
+
31
+ strategy :
32
+ fail-fast : false
33
+ matrix :
34
+ node :
35
+ - 12
36
+ - 14
37
+ - 16
38
+ - lts/*
39
+
40
+ steps :
41
+ - uses : actions/checkout@v2
42
+ with :
43
+ submodules : recursive
44
+ - name : Use Node.js ${{ matrix.node }}
45
+ uses : actions/setup-node@v2
46
+ with :
47
+ node-version : ${{ matrix.node }}
48
+ cache : npm
49
+ - run : npm install -g npm@8
50
+ - run : npm ci
51
+ - run : npm run build --if-present
52
+
53
+ - name : Run Tests
54
+ run : npm run unit-tests
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments