-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.14 KB
/
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
37
38
39
40
41
42
43
44
name: "CI"
on:
push:
branches: [main]
pull_request:
# For auto-approving/merging PRs.
permissions:
pull-requests: write
contents: write
jobs:
check:
name: "Checks and Tests"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- name: "Run NPM Basic Checks"
uses: SkynetLabs/.github/.github/actions/npm-basic-checks@master
with:
node-version: ${{ matrix.node-version }}
build: true
# Auto-merge Dependabot PRs. Requires also `.github/.kodiak.toml`.
# See https://hackmd.io/@SkynetLabs/ryFfInNXc.
dependabot:
name: "Approve and Merge Dependabot PRs"
# - Must be a PR.
# - The latest actor must be Dependabot. This prevents other users from
# sneaking in changes into the PR.
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: "Run Auto-Approval and Auto-Merge"
uses: SkynetLabs/.github/.github/actions/dependabot-approve-and-merge@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}