Skip to content

Commit

Permalink
Workaround the the runner issue in check-sql-snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
onurctirtir committed Feb 3, 2025
1 parent 4c400ce commit e7c3d1b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,21 @@ jobs:
runs-on: ubuntu-20.04
container:
image: ${{ needs.params.outputs.build_image_name }}:latest
volumes:
# see https://github.com/actions/checkout/issues/1474#issuecomment-2604308106
- /tmp:/__e/node20
options: --user root
steps:
# see https://github.com/actions/checkout/issues/1474#issuecomment-2604308106
- name: Install node.js for GitHub Actions
run: |
apt-get install -y curl ca-certificates &&
# Install a Node.js version that works in older Ubuntu containers (read: does not require very recent glibc)
NODE_VERSION=v20.18.1 &&
NODE_TAR_FILE=node-$NODE_VERSION-linux-x64-glibc-217.tar.gz &&
NODE_URL=https://unofficial-builds.nodejs.org/download/release/$NODE_VERSION/$NODE_TAR_FILE &&
curl -Lo /tmp/$NODE_TAR_FILE $NODE_URL &&
tar -C /__e/node20 -x --strip-components=1 -f /tmp/$NODE_TAR_FILE
- uses: actions/[email protected]
- name: Check Snapshots
run: |
Expand Down

0 comments on commit e7c3d1b

Please sign in to comment.