-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (56 loc) · 1.75 KB
/
continuous-integration.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
55
56
57
58
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
cypress-run:
name: Cypress run
runs-on: ubuntu-16.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cypress run
uses: cypress-io/github-action@v2
with:
config-file: cypress.json
command: yarn test
# after the test run completes, store any videos/screenshots
- name: Upload failed screenshots
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: test/e2e/screenshots
- name: Upload failed videos
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-videos
path: test/e2e/videos
merge-me:
name: Auto-merge dependabot PRs
needs:
- cypress-run
runs-on: ubuntu-latest
steps:
- name: Merge me!
uses: ridedott/merge-me-action@master
with:
# Depending on branch protection rules, a manually populated
# `GITHUB_TOKEN_WORKAROUND` environment variable with permissions to
# push to a protected branch must be used. This variable can have an
# arbitrary name, as an example, this repository uses
# `GITHUB_TOKEN_DOTTBOTT`.
#
# When using a custom token, it is recommended to leave the following
# comment for other developers to be aware of the reasoning behind it:
#
# This must be used as GitHub Actions token does not support
# pushing to protected branches.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_LOGIN: dependabot[bot]
PRESET: DEPENDABOT_MINOR