Skip to content

Commit 90cf990

Browse files
committed
Delete database setup
1 parent dd50cc1 commit 90cf990

File tree

2 files changed

+8
-71
lines changed
  • .github/workflows
  • lib/huginn_agent/templates/newagent/.github/workflows

2 files changed

+8
-71
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,15 @@ concurrency:
1010

1111
jobs:
1212
run-tests:
13-
name: ${{ matrix.os }} ruby-${{ matrix.ruby }} ${{ matrix.database_adapter }}
14-
runs-on: ubuntu-20.04
13+
name: ${{ matrix.os }} ruby-${{ matrix.ruby }}
14+
runs-on: ${{ matrix.os }}
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
database_adapter:
19-
- mysql2
20-
- postgresql
18+
os:
19+
- ubuntu-20.04
2120
ruby:
2221
- "3.2"
23-
env:
24-
DATABASE_ADAPTER: ${{ matrix.database_adapter }}
25-
DATABASE_HOST: "127.0.0.1"
26-
DATABASE_USERNAME: root
27-
DATABASE_PASSWORD: password
28-
services:
29-
mysql:
30-
image: mysql:latest
31-
env:
32-
MYSQL_ROOT_PASSWORD: password
33-
ports:
34-
- 3306:3306
35-
options: >-
36-
--health-cmd "mysqladmin ping"
37-
--health-interval 10s
38-
--health-timeout 5s
39-
--health-retries 3
40-
postgres:
41-
image: postgres:latest
42-
env:
43-
POSTGRES_USER: root
44-
POSTGRES_PASSWORD: password
45-
ports:
46-
- 5432:5432
47-
options: >-
48-
--health-cmd pg_isready
49-
--health-interval 10s
50-
--health-timeout 5s
51-
--health-retries 3
5222
steps:
5323
- uses: actions/checkout@v4
5424

@@ -60,8 +30,5 @@ jobs:
6030
bundler: latest
6131
bundler-cache: true
6232

63-
- name: Set up database
64-
run: bundle exec rake db:create db:migrate
65-
6633
- name: Run tests
6734
run: bundle exec rake

lib/huginn_agent/templates/newagent/.github/workflows/ci.yml.tt

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,18 @@ concurrency:
1010

1111
jobs:
1212
run-tests:
13-
name: ${{ matrix.os }} ruby-${{ matrix.ruby }} ${{ matrix.database_adapter }}
14-
runs-on: ubuntu-20.04
13+
name: ${{ matrix.os }} ruby-${{ matrix.ruby }}
14+
runs-on: ${{ matrix.os }}
1515
strategy:
1616
fail-fast: false
1717
matrix:
18+
os:
19+
- ubuntu-20.04
1820
database_adapter:
1921
- mysql2
2022
- postgresql
2123
ruby:
2224
- "3.2"
23-
env:
24-
DATABASE_ADAPTER: ${{ matrix.database_adapter }}
25-
DATABASE_HOST: "127.0.0.1"
26-
DATABASE_USERNAME: root
27-
DATABASE_PASSWORD: password
28-
services:
29-
mysql:
30-
image: mysql:latest
31-
env:
32-
MYSQL_ROOT_PASSWORD: password
33-
ports:
34-
- 3306:3306
35-
options: >-
36-
--health-cmd "mysqladmin ping"
37-
--health-interval 10s
38-
--health-timeout 5s
39-
--health-retries 3
40-
postgres:
41-
image: postgres:latest
42-
env:
43-
POSTGRES_USER: root
44-
POSTGRES_PASSWORD: password
45-
ports:
46-
- 5432:5432
47-
options: >-
48-
--health-cmd pg_isready
49-
--health-interval 10s
50-
--health-timeout 5s
51-
--health-retries 3
5225
steps:
5326
- uses: actions/checkout@v4
5427

@@ -60,8 +33,5 @@ jobs:
6033
bundler: latest
6134
bundler-cache: true
6235

63-
- name: Set up database
64-
run: bundle exec rake db:create db:migrate
65-
6636
- name: Run tests
6737
run: bundle exec rake

0 commit comments

Comments
 (0)