Skip to content

Commit 4e9ba99

Browse files
authored
Merge pull request #334 from noborus/github-actions-push
Improve GitHub Actions workflow triggers
2 parents 21e27f8 + a927110 commit 4e9ba99

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Test
22
permissions:
33
contents: read
44
on:
5-
- push
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
workflow_dispatch:
610

711
jobs:
812
build:
@@ -32,7 +36,7 @@ jobs:
3236
env:
3337
MYSQL_DATABASE: trdsql_test
3438
MYSQL_ROOT_PASSWORD: root
35-
image: mysql:9.5
39+
image: mysql:latest
3640
ports:
3741
- 3307:3306
3842
postgres:
@@ -41,7 +45,7 @@ jobs:
4145
POSTGRES_INITDB_ARGS: --encoding=UTF-8 --locale=C
4246
POSTGRES_PASSWORD: postgres
4347
POSTGRES_USER: postgres
44-
image: postgres
48+
image: postgres:latest
4549
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s
4650
--health-retries 5
4751
ports:

0 commit comments

Comments
 (0)
⌂ 换网址