This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
67 lines (67 loc) · 1.88 KB
/
graphql.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
59
60
61
62
63
64
65
66
67
name: GraphQL
on:
push:
paths:
- 'services/graphql/**'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Installing Packages
working-directory: ./services/graphql
run: yarn install
- name: Linting
working-directory: ./services/graphql
run: yarn run lint
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Installing Packages
working-directory: ./services/graphql
run: yarn install
- name: Running Unit Tests
working-directory: ./services/graphql
run: yarn run test
- name: Upload Test Reports
uses: actions/upload-artifact@v1
with:
name: test-report
path: ./services/graphql/coverage
build-docker:
name: Build Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Building Docker Image
working-directory: ./services/graphql
run: make docker save-docker
- name: Upload Docker Image
uses: actions/upload-artifact@v1
with:
name: docker-image
path: ./services/graphql/docker.tar
component-tests:
name: Component Tests
needs: build-docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Download Docker Image
uses: actions/download-artifact@v1
with:
name: docker-image
- name: Load Docker Image
working-directory: ./services/graphql
run: |
mv ../../docker-image/docker.tar .
make load-docker
- name: Building Test Docker Image
working-directory: ./services/graphql
run: make docker-test
- name: Running Component Tests
working-directory: ./services/graphql
run: make test-component-docker