-
Notifications
You must be signed in to change notification settings - Fork 108
88 lines (75 loc) · 2.39 KB
/
tests.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
name: Tests
on:
push:
branches-ignore:
- "stable"
jobs:
node:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [14, 16, 18]
arangodb-version:
- arangodb/arangodb:3.9.10
- arangodb/enterprise:3.9.10
- arangodb/arangodb:3.10.6
- arangodb/enterprise:3.10.6
- arangodb/arangodb:3.11.0
- arangodb/enterprise:3.11.0
- arangodb/arangodb-test:devel-nightly
- arangodb/enterprise-test:devel-nightly
container:
image: node:${{ matrix.node-version }}-alpine
services:
arangodb:
image: ${{ matrix.arangodb-version }}
env:
ARANGO_NO_AUTH: 1
ARANGO_LICENSE_KEY: ${{ secrets.ARANGO_LICENSE_KEY }}
steps:
- uses: actions/checkout@v2
- run: apk add jq
- run: npm install -g npm@8
- run: npm install
- run: npm test
env:
ARANGO_RELEASE: ${{ matrix.arangodb-version }}
TEST_ARANGODB_URL: http://arangodb:8529
CI: true
web:
runs-on: ubuntu-latest
strategy:
matrix:
arangodb-version:
- arangodb/arangodb:3.9.10
- arangodb/arangodb:3.10.6
- arangodb/arangodb:3.11.0
- arangodb/arangodb-test:devel-nightly
container:
image: node:16
services:
arangodb:
image: ${{ matrix.arangodb-version }}
env:
ARANGO_NO_AUTH: 1
steps:
- uses: actions/checkout@v2
- run: apt-get update && apt-get install jq wget gnupg -y
- run: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- run: sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- run: apt-get update && apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends -y
- run: npm install -g npm@8
- run: npm install && npm install puppeteer
- run: node smoke-test.js
promote:
runs-on: ubuntu-latest
needs: ["node", "web"]
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- run: git fetch . HEAD:stable
- run: git push origin stable