Bump github action versions

All github actions that run on Node12 are deprecated so bumped github
action versions to run on Node16.

https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
This commit is contained in:
Fabrízio de Royes Mello 2022-10-17 15:22:30 -03:00
parent 043bd55c0b
commit 8950abe0ee
22 changed files with 55 additions and 55 deletions

View File

@ -27,7 +27,7 @@ jobs:
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Read configuration - name: Read configuration
id: config id: config
run: python .github/gh_config_reader.py run: python .github/gh_config_reader.py
@ -70,7 +70,7 @@ jobs:
steps: steps:
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Build extension - name: Build extension
run: | run: |
@ -114,14 +114,14 @@ jobs:
- name: Save regression diffs - name: Save regression diffs
if: always() && steps.collectlogs.outputs.regression_diff == 'true' if: always() && steps.collectlogs.outputs.regression_diff == 'true'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Regression diff ABI Breakage ${{ matrix.type }} PG${{ matrix.pg }} name: Regression diff ABI Breakage ${{ matrix.type }} PG${{ matrix.pg }}
path: regression.log path: regression.log
- name: Save postmaster.log - name: Save postmaster.log
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: PostgreSQL log ABI Breakage ${{ matrix.type }} PG${{ matrix.pg }} name: PostgreSQL log ABI Breakage ${{ matrix.type }} PG${{ matrix.pg }}
path: postgres.log path: postgres.log

View File

@ -57,7 +57,7 @@ jobs:
dpkg -L timescaledb-2-postgresql-${{ matrix.pg }} dpkg -L timescaledb-2-postgresql-${{ matrix.pg }}
EOF EOF
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Read versions - name: Read versions
id: versions id: versions

View File

@ -53,7 +53,7 @@ jobs:
run: | run: |
dpkg -L timescaledb-2${{ matrix.pkg_suffix }}-postgresql-${{ matrix.pg }} dpkg -L timescaledb-2${{ matrix.pkg_suffix }}-postgresql-${{ matrix.pg }}
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Read versions - name: Read versions
id: versions id: versions

View File

@ -19,7 +19,7 @@ jobs:
sudo apt-get -y install coccinelle sudo apt-get -y install coccinelle
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Run coccinelle - name: Run coccinelle
run: | run: |
@ -27,7 +27,7 @@ jobs:
- name: Save coccinelle.diff - name: Save coccinelle.diff
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: coccinelle.diff name: coccinelle.diff
path: coccinelle.diff path: coccinelle.diff

View File

@ -15,7 +15,7 @@ jobs:
- name: Install prerequisites - name: Install prerequisites
run: pip install cmakelang run: pip install cmakelang
- name: Checkout source - name: Checkout source
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Run format on CMake files - name: Run format on CMake files
run: | run: |
find -name CMakeLists.txt -exec cmake-format -i {} + find -name CMakeLists.txt -exec cmake-format -i {} +
@ -29,7 +29,7 @@ jobs:
- name: Install prerequisites - name: Install prerequisites
run: sudo apt install perltidy run: sudo apt install perltidy
- name: Checkout source - name: Checkout source
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Format Perl files, if needed - name: Format Perl files, if needed
run: find . -name '*.p[lm]' -exec perltidy -b -bext=/ {} + run: find . -name '*.p[lm]' -exec perltidy -b -bext=/ {} +
- name: Check for diff - name: Check for diff
@ -42,7 +42,7 @@ jobs:
steps: steps:
- name: Checkout source - name: Checkout source
if: always() if: always()
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Check license - name: Check license
if: always() if: always()
run: ./scripts/check_license_all.sh run: ./scripts/check_license_all.sh

View File

@ -13,7 +13,7 @@ jobs:
pg_latest: ${{ steps.setter.outputs.PG_LATEST }} pg_latest: ${{ steps.setter.outputs.PG_LATEST }}
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Read configuration - name: Read configuration
id: setter id: setter
run: python .github/gh_config_reader.py run: python .github/gh_config_reader.py
@ -39,7 +39,7 @@ jobs:
# workflow since that workflow runs daily there should always be a cache hit # workflow since that workflow runs daily there should always be a cache hit
- name: Cache PostgreSQL ${{ matrix.pg }} - name: Cache PostgreSQL ${{ matrix.pg }}
id: cache-postgresql id: cache-postgresql
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/${{ env.PG_SRC_DIR }} path: ~/${{ env.PG_SRC_DIR }}
key: ${{ matrix.os }}-postgresql-${{ matrix.pg }}-gcc-Release key: ${{ matrix.os }}-postgresql-${{ matrix.pg }}-gcc-Release
@ -56,7 +56,7 @@ jobs:
make -C ~/$PG_SRC_DIR/contrib/postgres_fdw install make -C ~/$PG_SRC_DIR/contrib/postgres_fdw install
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Coverity tools - name: Coverity tools
run: | run: |

View File

@ -13,7 +13,7 @@ jobs:
pg_latest: ${{ steps.setter.outputs.PG_LATEST }} pg_latest: ${{ steps.setter.outputs.PG_LATEST }}
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Read configuration - name: Read configuration
id: setter id: setter
run: python .github/gh_config_reader.py run: python .github/gh_config_reader.py
@ -31,7 +31,7 @@ jobs:
steps: steps:
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Test recovery using restore points - name: Test recovery using restore points
run: | run: |

View File

@ -37,7 +37,7 @@ jobs:
brew services start postgresql brew services start postgresql
# checkout code to get version information # checkout code to get version information
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Test Installation - name: Test Installation
run: | run: |

View File

@ -14,7 +14,7 @@ jobs:
pg_latest: ${{ steps.setter.outputs.PG_LATEST }} pg_latest: ${{ steps.setter.outputs.PG_LATEST }}
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Read configuration - name: Read configuration
id: setter id: setter
run: python .github/gh_config_reader.py run: python .github/gh_config_reader.py
@ -59,7 +59,7 @@ jobs:
chown -R postgres:postgres ~/postgresql chown -R postgres:postgres ~/postgresql
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v1 uses: actions/checkout@v3
- name: Build TimescaleDB - name: Build TimescaleDB
run: | run: |
@ -107,21 +107,21 @@ jobs:
- name: Save regression diffs - name: Save regression diffs
if: always() && steps.collectlogs.outputs.regression_diff == 'true' if: always() && steps.collectlogs.outputs.regression_diff == 'true'
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v3
with: with:
name: Regression diff linux-i386 PG${{ matrix.pg }} name: Regression diff linux-i386 PG${{ matrix.pg }}
path: regression.log path: regression.log
- name: Save stacktraces - name: Save stacktraces
if: always() && steps.coredumps.outputs.coredumps == 'true' if: always() && steps.coredumps.outputs.coredumps == 'true'
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v3
with: with:
name: Stacktraces linux-i386 PG${{ matrix.pg }} name: Stacktraces linux-i386 PG${{ matrix.pg }}
path: stacktraces.log path: stacktraces.log
- name: Save postmaster.log - name: Save postmaster.log
if: always() if: always()
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v3
with: with:
name: PostgreSQL log linux-i386 PG${{ matrix.pg }} name: PostgreSQL log linux-i386 PG${{ matrix.pg }}
path: postgres.log path: postgres.log

View File

@ -14,7 +14,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }} matrix: ${{ steps.set-matrix.outputs.matrix }}
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Build matrix - name: Build matrix
id: set-matrix id: set-matrix
run: python .github/gh_matrix_builder.py ${{ github.event_name }} run: python .github/gh_matrix_builder.py ${{ github.event_name }}
@ -64,7 +64,7 @@ jobs:
- name: Cache PostgreSQL ${{ matrix.pg }} ${{ matrix.build_type }} - name: Cache PostgreSQL ${{ matrix.pg }} ${{ matrix.build_type }}
id: cache-postgresql id: cache-postgresql
if: matrix.snapshot != 'snapshot' if: matrix.snapshot != 'snapshot'
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/${{ env.PG_SRC_DIR }} path: ~/${{ env.PG_SRC_DIR }}
key: ${{ matrix.os }}-postgresql-${{ matrix.pg }}-${{ matrix.cc }}-${{ matrix.build_type }}${{ env.CACHE_SUFFIX }} key: ${{ matrix.os }}-postgresql-${{ matrix.pg }}-${{ matrix.cc }}-${{ matrix.build_type }}${{ env.CACHE_SUFFIX }}
@ -96,7 +96,7 @@ jobs:
make -C ~/$PG_SRC_DIR/contrib/postgres_fdw install make -C ~/$PG_SRC_DIR/contrib/postgres_fdw install
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Test telemetry without OpenSSL - name: Test telemetry without OpenSSL
if: github.event_name != 'pull_request' && runner.os == 'Linux' && matrix.build_type == 'Debug' if: github.event_name != 'pull_request' && runner.os == 'Linux' && matrix.build_type == 'Debug'

View File

@ -26,7 +26,7 @@ jobs:
sudo apt-get install postgresql-${{ matrix.pg }} postgresql-server-dev-${{ matrix.pg }} sudo apt-get install postgresql-${{ matrix.pg }} postgresql-server-dev-${{ matrix.pg }}
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Build TimescaleDB - name: Build TimescaleDB
run: | run: |

View File

@ -27,12 +27,12 @@ jobs:
steps: steps:
- name: Setup python 3.10 - name: Setup python 3.10
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.10' python-version: '3.10'
- name: Checkout timescaledb - name: Checkout timescaledb
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Install pgspot - name: Install pgspot
run: | run: |

View File

@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout source - name: Checkout source
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 fetch-depth: 0

View File

@ -6,7 +6,7 @@ jobs:
name: Run pull-review name: Run pull-review
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Run shell script - name: Run shell script
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0

View File

@ -58,7 +58,7 @@ jobs:
run: | run: |
rpm -ql timescaledb-2${{ matrix.pkg_suffix }}-postgresql-${{ matrix.pg }} rpm -ql timescaledb-2${{ matrix.pkg_suffix }}-postgresql-${{ matrix.pg }}
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Read versions - name: Read versions
id: versions id: versions

View File

@ -42,7 +42,7 @@ jobs:
pg_latest: ${{ steps.setter.outputs.PG_LATEST }} pg_latest: ${{ steps.setter.outputs.PG_LATEST }}
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Read configuration - name: Read configuration
id: setter id: setter
run: python .github/gh_config_reader.py run: python .github/gh_config_reader.py
@ -68,13 +68,13 @@ jobs:
# leading to a tainted cache # leading to a tainted cache
- name: Cache PostgreSQL ${{ matrix.pg }} - name: Cache PostgreSQL ${{ matrix.pg }}
id: cache-postgresql id: cache-postgresql
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/${{ env.PG_SRC_DIR }} path: ~/${{ env.PG_SRC_DIR }}
key: ${{ matrix.os }}-${{ env.name }}-postgresql-${{ matrix.pg }}-${{ env.CC }} key: ${{ matrix.os }}-${{ env.name }}-postgresql-${{ matrix.pg }}-${{ env.CC }}
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Build PostgreSQL ${{ matrix.pg }} if not in cache - name: Build PostgreSQL ${{ matrix.pg }} if not in cache
if: steps.cache-postgresql.outputs.cache-hit != 'true' if: steps.cache-postgresql.outputs.cache-hit != 'true'
@ -127,14 +127,14 @@ jobs:
- name: Save regression diffs - name: Save regression diffs
if: always() && steps.collectlogs.outputs.regression_diff == 'true' if: always() && steps.collectlogs.outputs.regression_diff == 'true'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Regression diff ${{ matrix.os }} ${{ env.name }} ${{ matrix.pg }} name: Regression diff ${{ matrix.os }} ${{ env.name }} ${{ matrix.pg }}
path: regression.log path: regression.log
- name: Save postmaster.log - name: Save postmaster.log
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: PostgreSQL log ${{ matrix.os }} ${{ env.name }} ${{ matrix.pg }} name: PostgreSQL log ${{ matrix.os }} ${{ env.name }} ${{ matrix.pg }}
path: postgres.log path: postgres.log
@ -151,14 +151,14 @@ jobs:
- name: Coredumps - name: Coredumps
if: always() && steps.collectlogs.outputs.coredumps == 'true' if: always() && steps.collectlogs.outputs.coredumps == 'true'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Coredumps ${{ matrix.os }} ${{ env.name }} ${{ matrix.pg }} name: Coredumps ${{ matrix.os }} ${{ env.name }} ${{ matrix.pg }}
path: coredumps path: coredumps
- name: sanitizer logs - name: sanitizer logs
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: sanitizer logs ${{ matrix.os }} ${{ env.name }} ${{ matrix.pg }} name: sanitizer logs ${{ matrix.os }} ${{ env.name }} ${{ matrix.pg }}
path: ${{ github.workspace }}/sanitizer.log.* path: ${{ github.workspace }}/sanitizer.log.*

View File

@ -17,7 +17,7 @@ jobs:
sudo apt-get install shellcheck sudo apt-get install shellcheck
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0

View File

@ -14,7 +14,7 @@ jobs:
pg14_latest: ${{ steps.setter.outputs.PG14_LATEST }} pg14_latest: ${{ steps.setter.outputs.PG14_LATEST }}
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Read configuration - name: Read configuration
id: setter id: setter
run: python .github/gh_config_reader.py run: python .github/gh_config_reader.py
@ -44,7 +44,7 @@ jobs:
# workflow since that workflow runs daily there should always be a cache hit # workflow since that workflow runs daily there should always be a cache hit
- name: Cache PostgreSQL ${{ matrix.pg }} - name: Cache PostgreSQL ${{ matrix.pg }}
id: cache-postgresql id: cache-postgresql
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/${{ env.PG_SRC_DIR }} path: ~/${{ env.PG_SRC_DIR }}
key: ${{ matrix.os }}-postgresql-${{ matrix.pg }}-${{ matrix.cc }}-${{ matrix.build_type }} key: ${{ matrix.os }}-postgresql-${{ matrix.pg }}-${{ matrix.cc }}-${{ matrix.build_type }}
@ -61,7 +61,7 @@ jobs:
make -C ~/$PG_SRC_DIR/contrib/postgres_fdw install make -C ~/$PG_SRC_DIR/contrib/postgres_fdw install
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Build TimescaleDB - name: Build TimescaleDB
run: | run: |
@ -70,7 +70,7 @@ jobs:
make -C build install make -C build install
- name: Checkout sqlsmith - name: Checkout sqlsmith
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
repository: 'timescale/sqlsmith' repository: 'timescale/sqlsmith'
path: 'sqlsmith' path: 'sqlsmith'
@ -122,7 +122,7 @@ jobs:
- name: Upload Coredumps - name: Upload Coredumps
if: always() && steps.collectlogs.outputs.coredumps == 'true' if: always() && steps.collectlogs.outputs.coredumps == 'true'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Coredumps sqlsmith ${{ matrix.os }} PG${{ matrix.pg }} name: Coredumps sqlsmith ${{ matrix.os }} PG${{ matrix.pg }}
path: coredumps path: coredumps

View File

@ -14,7 +14,7 @@ jobs:
pg_latest: ${{ steps.setter.outputs.PG_LATEST }} pg_latest: ${{ steps.setter.outputs.PG_LATEST }}
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Read configuration - name: Read configuration
id: setter id: setter
run: python .github/gh_config_reader.py run: python .github/gh_config_reader.py
@ -32,7 +32,7 @@ jobs:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
steps: steps:
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Update tests ${{ matrix.pg }} - name: Update tests ${{ matrix.pg }}
run: | run: |
@ -46,7 +46,7 @@ jobs:
- name: Upload Artifacts - name: Upload Artifacts
if: failure() if: failure()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Extension update diff ${{ matrix.pg }} name: Extension update diff ${{ matrix.pg }}
path: update_test.*.diff.* path: update_test.*.diff.*
@ -65,7 +65,7 @@ jobs:
GENERATE_DOWNGRADE_SCRIPT: ON GENERATE_DOWNGRADE_SCRIPT: ON
steps: steps:
- name: Checkout TimescaleDB - name: Checkout TimescaleDB
uses: actions/checkout@v2 uses: actions/checkout@v3
# We need the tags to be able to build a downgrade script. # We need the tags to be able to build a downgrade script.
- name: Fetch all tags - name: Fetch all tags
@ -88,7 +88,7 @@ jobs:
- name: Upload Artifacts - name: Upload Artifacts
if: failure() if: failure()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Extension downgrade diff ${{ matrix.pg }} name: Extension downgrade diff ${{ matrix.pg }}
path: downgrade_test.*.diff.* path: downgrade_test.*.diff.*

View File

@ -19,7 +19,7 @@ jobs:
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Read configuration - name: Read configuration
id: config id: config
run: python .github/gh_config_reader.py run: python .github/gh_config_reader.py
@ -69,7 +69,7 @@ jobs:
git config --global core.autocrlf false git config --global core.autocrlf false
git config --global core.eol lf git config --global core.eol lf
- name: Checkout TimescaleDB source - name: Checkout TimescaleDB source
uses: actions/checkout@v2 uses: actions/checkout@v3
# Use a cache for the PostgreSQL installation to speed things up # Use a cache for the PostgreSQL installation to speed things up
# and avoid unnecessary package downloads. Since we only save # and avoid unnecessary package downloads. Since we only save
# the directory containing the binaries, the runs with a cache # the directory containing the binaries, the runs with a cache
@ -78,7 +78,7 @@ jobs:
# --extract-only and launch our own test instance, which is # --extract-only and launch our own test instance, which is
# probably better anyway since it gives us more control. # probably better anyway since it gives us more control.
- name: Cache PostgreSQL installation - name: Cache PostgreSQL installation
uses: actions/cache@v1 uses: actions/cache@v3
id: cache-postgresql id: cache-postgresql
with: with:
path: ~\PostgreSQL\${{ matrix.pg }} path: ~\PostgreSQL\${{ matrix.pg }}

View File

@ -22,7 +22,7 @@ jobs:
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Read configuration - name: Read configuration
id: config id: config
run: python .github/gh_config_reader.py run: python .github/gh_config_reader.py
@ -62,7 +62,7 @@ jobs:
steps: steps:
- name: Checkout TimescaleDB source - name: Checkout TimescaleDB source
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Get version - name: Get version
id: version id: version