Skip to content

Commit

Permalink
Remove redundant job from CIs
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadTahaNaveed committed Jan 1, 2024
1 parent 1ef68b2 commit 5aa2b78
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 83 deletions.
24 changes: 4 additions & 20 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", "PG15" ]
branches: [ "PG15" ]

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

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/PG15" ]]; then
echo "TAG=PG15_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" == "PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
fi
- name: Run apache/age docker image
run: |
export TAG=$TAG
export TAG=PG15_latest
docker-compose up -d
- name: Set up Go
Expand All @@ -54,4 +38,4 @@ jobs:
run: go build -v ./...

- name: Test
run: go test . -v
run: go test . -v
6 changes: 3 additions & 3 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', 'PG15' ]
branches: [ "PG15" ]
pull_request:
branches: [ 'master', 'PG15' ]
branches: [ "PG15" ]

jobs:
build:
Expand Down Expand Up @@ -49,4 +49,4 @@ jobs:
echo "Dump section begin."
cat $HOME/work/age/age/regress/regression.diffs
echo "Dump section end."
exit 1
exit 1
24 changes: 4 additions & 20 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", "PG15" ]
branches: [ "PG15" ]

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

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/PG15" ]]; then
echo "TAG=PG15_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" == "PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
fi
- name: Build and Test
run: |
export TAG=$TAG
gradle build
export TAG=PG15_latest
gradle build
24 changes: 4 additions & 20 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", "PG15" ]
branches: [ "PG15" ]

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

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/PG15" ]]; then
echo "TAG=PG15_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" == "PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
fi
- name: Run apache/age docker image
run: |
export TAG=$TAG
export TAG=PG15_latest
docker-compose up -d
- name: Set up Node
Expand All @@ -51,4 +35,4 @@ jobs:
run: npm run build

- name: Test
run: npm test
run: npm test
24 changes: 4 additions & 20 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", "PG15" ]
branches: [ "PG15" ]

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

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/PG15" ]]; then
echo "TAG=PG15_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" == "PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
fi
- name: Run apache/age docker image
run: |
export TAG=$TAG
export TAG=PG15_latest
docker-compose up -d
- name: Set up python
Expand All @@ -56,4 +40,4 @@ jobs:
- name: Test
run: |
python test_age_py.py -db "postgres" -u "postgres" -pass "agens"
python -m unittest -v test_agtypes.py
python -m unittest -v test_agtypes.py

0 comments on commit 5aa2b78

Please sign in to comment.