-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (49 loc) · 1.43 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
45
46
47
48
49
50
51
52
53
54
name: Continuous Integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
types: [ opened, reopened, synchronize, edited ]
jobs:
ci:
name: Continuous Integration
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
directory:
- 'event-scraper'
- 'applications-service'
steps:
- name: Run git checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Figure out if anything in this directory changed
if: github.event_name != 'push'
uses: technote-space/[email protected]
id: git-diff
with:
PATTERNS: ${{ matrix.directory }}/**
DOT: ..
- name: Set up Node
uses: actions/setup-node@v2
if: github.event_name == 'push' || steps.git-diff.outputs.diff
with:
node-version: '14.x'
- run: npm ci
if: github.event_name == 'push' || steps.git-diff.outputs.diff
working-directory: ${{ matrix.directory }}
- run: npm test
if: github.event_name == 'push' || steps.git-diff.outputs.diff
working-directory: ${{ matrix.directory }}
auto-merge:
needs: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: patch
github-token: ${{ secrets.mytoken }}