Skip to content

Bump actions/checkout from 3 to 4 #95

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #95

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Test
on:
pull_request:
push:
concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ubuntu:
name: Ubuntu - PostgreSQL ${{ matrix.postgresql-version }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
postgresql-version:
- "15"
steps:
- uses: actions/checkout@v4
- name: Install Apache Arrow
run: |
sudo apt update
sudo apt install -y -V ca-certificates lsb-release wget
apt_source_deb=apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/${apt_source_deb}
sudo apt install -y -V ./${apt_source_deb}
sudo apt update
sudo apt install -y -V \
libarrow-flight-sql-glib-dev \
meson \
ninja-build
- name: Install PostgreSQL
run: |
sudo apt -y -V purge '^postgresql'
suite=$(lsb_release --codename --short)-pgdg
sudo tee /etc/apt/sources.list.d/pgdg.list <<APT_SOURCE
deb http://apt.postgresql.org/pub/repos/apt ${suite} main
APT_SOURCE
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
sudo apt -y -V -t ${suite} install \
libkrb5-dev \
postgresql-${{ matrix.postgresql-version }} \
postgresql-server-dev-${{ matrix.postgresql-version }}
- name: Install Apache Arrow Flight SQL adapter
run: |
meson \
setup \
--prefix=/tmp/local \
-Dbenchmark=true \
-Dpostgresql_dir=$(pg_config --binddir)/.. \
build
ninja -C build
sudo ninja -C build install
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true
cache-version: 1
- name: Test
run: |
PATH=$(pg_config --bindir):$PATH bundle exec test/run.rb