Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 15
env:
BUNDLE_PATH: /tmp/bundle
strategy:
Expand All @@ -39,9 +40,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# The Azure mirror the runner image points at stalls intermittently, and apt's
# own Acquire timeouts bound a single connection, not a whole fetch.
- name: Install unixODBC headers for ruby-odbc
if: ${{ matrix.packages == 'forest_admin_datasource_snowflake' }}
run: sudo apt-get update && sudo apt-get install -y unixodbc-dev
timeout-minutes: 8
run: |
sudo timeout -k 30 90 apt-get update -o Acquire::Retries=1 -o Acquire::http::Timeout=10 ||
echo 'apt-get update incomplete; continuing with the lists on the image'
sudo DEBIAN_FRONTEND=noninteractive timeout -k 30 240 apt-get install -y \
--no-install-recommends -o Acquire::Retries=1 -o Acquire::http::Timeout=10 unixodbc-dev

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
Expand All @@ -60,6 +68,7 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 20
needs: [lint]
env:
BUNDLE_PATH: /tmp/bundle
Expand Down Expand Up @@ -88,9 +97,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# The Azure mirror the runner image points at stalls intermittently, and apt's
# own Acquire timeouts bound a single connection, not a whole fetch.
- name: Install unixODBC headers for ruby-odbc
if: ${{ matrix.packages == 'forest_admin_datasource_snowflake' }}
run: sudo apt-get update && sudo apt-get install -y unixodbc-dev
timeout-minutes: 8
run: |
sudo timeout -k 30 90 apt-get update -o Acquire::Retries=1 -o Acquire::http::Timeout=10 ||
echo 'apt-get update incomplete; continuing with the lists on the image'
sudo DEBIAN_FRONTEND=noninteractive timeout -k 30 240 apt-get install -y \
--no-install-recommends -o Acquire::Retries=1 -o Acquire::http::Timeout=10 unixodbc-dev

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -128,6 +144,7 @@ jobs:
coverage:
name: Send Coverage
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [test]
strategy:
matrix:
Expand Down
Loading