Mercurial > hg > monetdb-perl
annotate .github/workflows/runtests.yml @ 46:472a9445eb6a
Try taking the MonetDB container version from a matrix
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Fri, 18 Dec 2020 11:03:46 +0100 (2020-12-18) |
parents | 03e6ddee4090 |
children | 8d6cfd04bde0 |
rev | line source |
---|---|
30
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
1 name: Run monetdb-perl test suite |
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
2 |
42
4f7a4ee307ba
More workflow triggers
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
40
diff
changeset
|
3 on: |
4f7a4ee307ba
More workflow triggers
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
40
diff
changeset
|
4 push: |
4f7a4ee307ba
More workflow triggers
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
40
diff
changeset
|
5 pull_request: |
4f7a4ee307ba
More workflow triggers
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
40
diff
changeset
|
6 # monday morning 01:23 |
4f7a4ee307ba
More workflow triggers
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
40
diff
changeset
|
7 schedule: |
4f7a4ee307ba
More workflow triggers
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
40
diff
changeset
|
8 - cron: 23 1 * * 1 |
30
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
9 |
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
10 jobs: |
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
11 runtests: |
46
472a9445eb6a
Try taking the MonetDB container version from a matrix
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
45
diff
changeset
|
12 strategy: |
472a9445eb6a
Try taking the MonetDB container version from a matrix
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
45
diff
changeset
|
13 matrix: |
472a9445eb6a
Try taking the MonetDB container version from a matrix
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
45
diff
changeset
|
14 monetdb_image: |
472a9445eb6a
Try taking the MonetDB container version from a matrix
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
45
diff
changeset
|
15 - monetdb/monetdb:latest |
472a9445eb6a
Try taking the MonetDB container version from a matrix
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
45
diff
changeset
|
16 - monetdb/monetdb:Jun2020-SP1 |
30
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
17 runs-on: ubuntu-latest |
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
18 env: |
44
b35ed8684036
Run monetdb in a service container
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
42
diff
changeset
|
19 DBI_DSN: dbi:monetdb:database=demo |
b35ed8684036
Run monetdb in a service container
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
42
diff
changeset
|
20 |
b35ed8684036
Run monetdb in a service container
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
42
diff
changeset
|
21 services: |
b35ed8684036
Run monetdb in a service container
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
42
diff
changeset
|
22 monetdb: |
46
472a9445eb6a
Try taking the MonetDB container version from a matrix
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
45
diff
changeset
|
23 image: ${{monetdb_image}} |
44
b35ed8684036
Run monetdb in a service container
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
42
diff
changeset
|
24 ports: |
b35ed8684036
Run monetdb in a service container
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
42
diff
changeset
|
25 - 50000:50000 |
30
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
26 |
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
27 steps: |
44
b35ed8684036
Run monetdb in a service container
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
42
diff
changeset
|
28 |
42
4f7a4ee307ba
More workflow triggers
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
40
diff
changeset
|
29 - uses: actions/checkout@v2 |
30
2ac3451a49d5
Add GitHub workflow
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
30 |
45
03e6ddee4090
Still need DBI
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
44
diff
changeset
|
31 - name: Install libdbi-perl |
03e6ddee4090
Still need DBI
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
44
diff
changeset
|
32 run: | |
03e6ddee4090
Still need DBI
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
44
diff
changeset
|
33 set -x -e |
03e6ddee4090
Still need DBI
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
44
diff
changeset
|
34 sudo apt-get -qq update |
03e6ddee4090
Still need DBI
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
44
diff
changeset
|
35 sudo apt-get -qq install -y libdbi-perl |
03e6ddee4090
Still need DBI
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
44
diff
changeset
|
36 |
42
4f7a4ee307ba
More workflow triggers
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
40
diff
changeset
|
37 - name: Run Unit-Tests |
4f7a4ee307ba
More workflow triggers
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
40
diff
changeset
|
38 run: | |
36
81d45b439e58
.editorconfig keeps messing up my yaml
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
35
diff
changeset
|
39 set -x -e |
37
c436b5131196
Also run the tests
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
36
diff
changeset
|
40 ./runtests.sh |