-
Notifications
You must be signed in to change notification settings - Fork 21
84 lines (84 loc) · 2.48 KB
/
samples.yaml
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
on:
push:
branches:
- postgresql-dialect
pull_request:
workflow_dispatch:
name: samples
jobs:
java-samples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- name: Run JDBC Sample tests
working-directory: ./samples/java/jdbc
run: mvn test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: Run Hibernate Sample tests
working-directory: ./samples/java/hibernate
run: mvn test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
go-samples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20.7'
- run: go version
- name: Run gorm Sample tests
working-directory: ./samples/golang/gorm
run: go test
- name: Run pgx Sample tests
working-directory: ./samples/golang/pgx
run: go test
python-samples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- run: python --version
- name: Install pip
run: python -m pip install --upgrade pip
- name: Run psycopg3 Sample tests
working-directory: ./samples/python/psycopg3
run: |
pip install -r requirements.txt
python psycopg3_sample.py
- name: Run SQLAlchemy2 Sample tests
working-directory: ./samples/python/sqlalchemy2-sample
run: |
pip install -r requirements.txt
python run_sample.py
nodejs-samples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: node --version
- name: Run Knex Sample tests
working-directory: ./samples/nodejs/knex
run: |
npm install
npm start
ruby-samples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- run: ruby --version
- name: Run Ruby on Rails ActiveRecord Sample tests
working-directory: ./samples/ruby/activerecord
run: |
bundle install
bundle exec rake run