Skip to content

Commit

Permalink
Rename CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenv committed Jun 23, 2023
1 parent 345d0b1 commit 96cde33
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/golang.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: golang
name: Test
on:
push:
branches:
Expand All @@ -9,7 +9,8 @@ jobs:
strategy:
fail-fast: true
matrix:
go-version: [ '1.13', '1.14', '1.15', '1.16', '1.17', '1.18', '1.19', '1.20']
go-version:
["1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20"]
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -32,7 +33,7 @@ jobs:
- name: setup-go
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: "1.20"
cache: true
cache-dependency-path: go.sum
- name: golangci-lint
Expand All @@ -52,14 +53,15 @@ jobs:
strategy:
fail-fast: true
matrix:
go-version: [ '1.13', '1.14', '1.15', '1.16', '1.17', '1.18', '1.19', '1.20']
go-version:
["1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20"]
services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: '1'
MYSQL_ROOT_PASSWORD: ''
MYSQL_DATABASE: 'test'
MYSQL_ALLOW_EMPTY_PASSWORD: "1"
MYSQL_ROOT_PASSWORD: ""
MYSQL_DATABASE: "test"
ports:
- 3306:3306
options: >-
Expand All @@ -70,7 +72,7 @@ jobs:
postgres:
image: postgres:15
env:
POSTGRES_PASSWORD: 'password'
POSTGRES_PASSWORD: "password"
ports:
- 5432:5432
options: >-
Expand All @@ -79,10 +81,10 @@ jobs:
--health-timeout 5s
--health-retries 5
env:
MYSQL_HOST: '127.0.0.1'
PGHOST: '127.0.0.1'
PGUSER: 'postgres'
PGPASSWORD: 'password'
MYSQL_HOST: "127.0.0.1"
PGHOST: "127.0.0.1"
PGUSER: "postgres"
PGPASSWORD: "password"
steps:
- name: checkout
uses: actions/checkout@v3
Expand All @@ -108,4 +110,4 @@ jobs:
- name: mysql-env
run: bash ./test-integration/mysql-env.sh
- name: sqlite
run: bash ./test-integration/sqlite.sh
run: bash ./test-integration/sqlite.sh

0 comments on commit 96cde33

Please sign in to comment.