-
Notifications
You must be signed in to change notification settings - Fork 3
101 lines (79 loc) · 2.58 KB
/
master.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: master
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
docker-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Docker Tests
run: |
cd tests/integration/docker_test
docker-compose up -d drivers
docker exec drivers deno test -A --config tsconfig.json --no-check=remote tests/integration
docker exec drivers deno test -A --config tsconfig.json --no-check=remote tests/unit
console-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: Run Console Tests
run: |
deno test -A tests/console
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: Run Integration Tests
run: |
deno test -A tests/integration --config tsconfig.json --no-check=remote
- name: Run Unit Tests
run: |
deno test -A --config tsconfig.json tests/unit --no-check=remote
remote-tests:
#only ubuntu as docker and docker compose is preinstalled only on ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: Run Integration Tests (remote)
run: |
docker compose -f tests/integration/docker_test/docker-compose.yml up remotes -d
deno test -A tests/integration --config tsconfig.json --no-check=remote -- --remoteBrowser
docker compose -f tests/integration/docker_test/docker-compose.yml down
- name: Run Unit Tests (remote)
run: |
docker compose -f tests/integration/docker_test/docker-compose.yml up remotes -d
deno test -A tests/unit --config tsconfig.json --no-check=remote -- --remoteBrowser
docker compose -f tests/integration/docker_test/docker-compose.yml down
linter:
# Only one OS is required since fmt is cross platform
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: Lint
run: deno lint --ignore=examples
- name: Formatter
run: deno fmt --check