Skip to content

Commit

Permalink
Fix cppcheck workflow (#441)
Browse files Browse the repository at this point in the history
* Upgrade ubuntu from 20.04 to 22.04

* Temporary remove all workflows except cppcheck

* Try ununty 23.10

* Revert "Try ununty 23.10"

This reverts commit c8590b6.

* Try cppcheck built from sources

* Add sudo

* Bump checkout action version in cppcheck workflow

* Revert "Temporary remove all workflows except cppcheck"

This reverts commit 9f32e94.
  • Loading branch information
artemgavrilov authored Apr 5, 2024
1 parent c89879e commit 684e648
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 12 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@ on: [push]
jobs:
build:
name: cppcheck-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: install cppcheck
run: sudo apt-get install cppcheck
- name: Checkout sources
uses: actions/checkout@v4

- name: Checkout cppcheck sources
uses: actions/checkout@v4
with:
repository: 'danmar/cppcheck'
ref: '2.13.4'
path: src/cppcheck

- name: Build and install cppcheck
run: |
mkdir build
cd build
cmake ..
cmake --build .
sudo cmake --install .
working-directory: src/cppcheck

- name: Execute linter check with cppcheck
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql-11-pgdg-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [pull_request]
jobs:
build:
name: pg-11-pgdg-package-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone pg_stat_monitor repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql-11-ppg-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]
jobs:
build:
name: pg-11-ppg-package-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone pg_stat_monitor repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql-12-pgdg-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [pull_request]
jobs:
build:
name: pg-12-pgdg-package-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone pg_stat_monitor repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql-12-ppg-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]
jobs:
build:
name: pg-12-ppg-package-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone pg_stat_monitor repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql-13-pgdg-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [pull_request]
jobs:
build:
name: pg-13-pgdg-package-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone pg_stat_monitor repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql-13-ppg-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]
jobs:
build:
name: pg-13-ppg-package-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone pg_stat_monitor repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql-14-pgdg-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [pull_request]
jobs:
build:
name: pg-14-pgdg-package-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone pg_stat_monitor repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql-14-ppg-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]
jobs:
build:
name: pg-14-ppg-package-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone pg_stat_monitor repository
uses: actions/checkout@v2
Expand Down

0 comments on commit 684e648

Please sign in to comment.