Skip to content

Commit

Permalink
Remove redundant job from CIs (#1473)
Browse files Browse the repository at this point in the history
- Removed the job for setting the appropriate tag of docker image
  because it is not required anymore.
  • Loading branch information
MuhammadTahaNaveed authored Jan 2, 2024
1 parent 140c3a7 commit e563dac
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 78 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/go-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Go Driver Tests

on:
push:
branches: [ "master", "PG16" ]
branches: [ "master" ]

pull_request:
branches: [ "master", "PG16" ]
branches: [ "master" ]

jobs:
build:
Expand All @@ -21,25 +21,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set tag based on branch
run: |
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
echo "TAG=PG16_latest" >> $GITHUB_ENV
fi
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_BASE_REF" == "master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
echo "TAG=PG16_latest" >> $GITHUB_ENV
fi
fi
- name: Run apache/age docker image
run: |
export TAG=$TAG
export TAG=latest
docker-compose up -d
- name: Set up Go
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/installcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build / Regression

on:
push:
branches: [ 'master', 'PG16' ]
branches: [ "master" ]
pull_request:
branches: [ 'master', 'PG16' ]
branches: [ "master" ]

jobs:
build:
Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/jdbc-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: JDBC Driver Tests

on:
push:
branches: [ "master", "PG16" ]
branches: [ "master" ]

pull_request:
branches: [ "master", "PG16" ]
branches: [ "master" ]

jobs:
build:
Expand All @@ -23,23 +23,7 @@ jobs:
distribution: 'zulu'
java-version: '17'

- name: Set tag based on branch
run: |
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
echo "TAG=PG16_latest" >> $GITHUB_ENV
fi
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_BASE_REF" == "master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
echo "TAG=PG16_latest" >> $GITHUB_ENV
fi
fi
- name: Build and Test
run: |
export TAG=$TAG
export TAG=latest
gradle build
22 changes: 3 additions & 19 deletions .github/workflows/nodejs-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Nodejs Driver Tests

on:
push:
branches: [ "master", "PG16" ]
branches: [ "master" ]

pull_request:
branches: [ "master", "PG16" ]
branches: [ "master" ]

jobs:
build:
Expand All @@ -18,25 +18,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set tag based on branch
run: |
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
echo "TAG=PG16_latest" >> $GITHUB_ENV
fi
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_BASE_REF" == "master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
echo "TAG=PG16_latest" >> $GITHUB_ENV
fi
fi
- name: Run apache/age docker image
run: |
export TAG=$TAG
export TAG=latest
docker-compose up -d
- name: Set up Node
Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/python-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Python Driver Tests

on:
push:
branches: [ "master", "PG16" ]
branches: [ "master" ]

pull_request:
branches: [ "master", "PG16" ]
branches: [ "master" ]

jobs:
build:
Expand All @@ -18,25 +18,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set tag based on branch
run: |
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
echo "TAG=PG16_latest" >> $GITHUB_ENV
fi
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_BASE_REF" == "master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
echo "TAG=PG16_latest" >> $GITHUB_ENV
fi
fi
- name: Run apache/age docker image
run: |
export TAG=$TAG
export TAG=latest
docker-compose up -d
- name: Set up python
Expand Down

0 comments on commit e563dac

Please sign in to comment.