-
Notifications
You must be signed in to change notification settings - Fork 365
32 lines (29 loc) · 949 Bytes
/
test.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
name: Rita tests
on:
pull_request:
# Run tests except if only markdown files are changed
paths:
- '**'
- '!*.md'
jobs:
test:
name: static and unit tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- run: make docker-test
# integration:
# name: integration tests
# runs-on: ubuntu-16.04
# steps:
# - uses: actions/checkout@v1
# - run: |
# make docker-build-test
# docker container create --name rita --entrypoint /bin/sleep quay.io/activecm/rita:test 5m
# docker container start rita
# docker container exec rita tar cf vendor.tar vendor
# docker container cp rita:/go/src/github.com/activecm/rita/rita ./rita
# docker container cp rita:/go/src/github.com/activecm/rita/vendor.tar ./vendor.tar
# docker container stop rita
# tar xf vendor.tar
# - run: make integration-test