Skip to content

Commit

Permalink
run tests on pg16 (#1340)
Browse files Browse the repository at this point in the history
* run tests on pg16
* nightly packages for deb12
* fix dialpeer deletion tests to allow any argument order
  • Loading branch information
dmitry-sinina authored Sep 21, 2023
1 parent e972b7e commit 9a8cbf3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/nightly-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
branches: [ master ]

jobs:
deb11:
name: Debian 11 nightly package building
deb12:
name: Debian 12 nightly package building
runs-on: ubuntu-latest
container: ghcr.io/yeti-switch/yeti-web/build-image:bullseye
container: ghcr.io/yeti-switch/yeti-web/build-image:bookworm
services:
db:
image: ghcr.io/yeti-switch/yeti-web/pgsql:13
image: ghcr.io/yeti-switch/yeti-web/pgsql:16

steps:
- uses: actions/checkout@v2
Expand All @@ -33,17 +33,17 @@ jobs:
- name: Save deb package as artifact
uses: actions/upload-artifact@v2
with:
name: deb11-package
name: deb12-package
path: /__w/yeti-web/*.deb

- name: Upload package to ${{github.ref}} repo
env:
PKG_API_BASE: ${{secrets.PKG_API_BASE}}
run: ci/deploy.sh bullseye nightly main ../*.deb
run: ci/deploy.sh bookworm nightly main ../*.deb

deb11_container:
name: Debian 11 container
needs: deb11
deb12_container:
name: Debian 12 container
needs: deb12
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: deb11-package
name: deb12-package

- name: Display structure of downloaded files
run: ls -la
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
container: ghcr.io/yeti-switch/yeti-web/build-image:bookworm
services:
db:
image: ghcr.io/yeti-switch/yeti-web/pgsql:13
image: ghcr.io/yeti-switch/yeti-web/pgsql:16

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -78,9 +78,9 @@ jobs:
run: v=${PKG_TAG##*/};major_version=${v%\.[0-9]*};ci/deploy.sh bookworm $major_version main ../*.deb


deb11_container:
name: Debian 11 release container
needs: deb11
deb12_container:
name: Debian 12 release container
needs: deb12
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -90,7 +90,7 @@ jobs:
- name: Download a single artifact
uses: actions/download-artifact@v2
with:
name: deb11-package
name: deb12-package

- name: Display structure of downloaded files
run: ls -la
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
container: ghcr.io/yeti-switch/yeti-web/build-image:bullseye
services:
db:
image: ghcr.io/yeti-switch/yeti-web/pgsql:13
image: ghcr.io/yeti-switch/yeti-web/pgsql:16
needs: gems-caching
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
container: ghcr.io/yeti-switch/yeti-web/build-image:bullseye
services:
db:
image: ghcr.io/yeti-switch/yeti-web/pgsql:13
image: ghcr.io/yeti-switch/yeti-web/pgsql:16

needs: gems-caching
steps:
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
container: ghcr.io/yeti-switch/yeti-web/build-image:bullseye
services:
db:
image: ghcr.io/yeti-switch/yeti-web/pgsql:13
image: ghcr.io/yeti-switch/yeti-web/pgsql:16

needs: gems-caching
strategy:
Expand Down
2 changes: 1 addition & 1 deletion spec/jobs/jobs/delete_expired_dialpeers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
end

it 'should call DeleteDialpeers service' do
expect(DeleteDialpeers).to receive(:call).with(dialpeer_ids: expired_dialpeers.map(&:id)).and_call_original
expect(DeleteDialpeers).to receive(:call).with(dialpeer_ids: contain_exactly(*expired_dialpeers.map(&:id))).and_call_original
subject
end

Expand Down

0 comments on commit 9a8cbf3

Please sign in to comment.