-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.25 KB
/
main.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
on:
pull_request:
types: [opened, synchronize]
jobs:
evaluator_job:
name: Evaluator Job
runs-on: ubuntu-18.04
services:
mysql:
image: mysql:8.0.21
env:
MYSQL_ROOT_PASSWORD: 'password'
ports:
- 3306:3306
- 33060:33060
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: '12'
- name: Static code analysis step
uses: betrybe/eslint-linter-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Evaluator step
id: evaluator
uses: betrybe/cypress-evaluator-action@v5
with:
repository-test-name: 'betrybe/sd-0x-trybeer-tests'
repository-test-branch: 'master'
npm-start: true
env:
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'password'
HOSTNAME: 'mysql'
- name: Store evaluation step
uses: betrybe/store-evaluation-action@v2
with:
evaluation-data: ${{ steps.evaluator.outputs.result }}
environment: production
pr-number: ${{ github.event.number }}