install older version of libssl #502
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches-ignore: | |
- development/** | |
- q/*/** | |
concurrency: | |
group: 'tests-${{ github.ref }}' | |
cancel-in-progress: true | |
env: | |
PROJECT_NAME: ${{ github.event.repository.name }} | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
permissions: | |
# Need to explicitely add package write permissions for dependabot | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildk | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ github.token }} | |
- name: Build and push MongoDB | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
context: .github/dockerfiles/mongodb | |
tags: ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }} | |
cache-from: type=gha,scope=ci-mongodb | |
cache-to: type=gha,mode=max,scope=ci-mongodb | |
tests: | |
needs: prepare | |
runs-on: ubuntu-latest | |
services: | |
mongodb: | |
image: ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }} | |
ports: | |
- 27017:27017 | |
- 27018:27018 | |
- 27019:27019 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Some test packages require libssl.so.1.1 | |
# TODO: Remove this once NodeJS and the packages are updated | |
- name: Install libssl.so.1.1 | |
run: | | |
curl -O http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb | |
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- run: sudo apt-get update -q | |
- run: yarn --network-concurrency 1 | |
- run: yarn --silent lint -- --max-warnings 0 | |
- run: yarn --silent test:unit | |
- run: yarn --silent test:functional | |
env: | |
MONGODB_REPLICASET: "localhost:27018" | |
- name: "Debug: SSH to runner" | |
uses: scality/actions/[email protected] | |
continue-on-error: true | |
with: | |
tmate-server-host: ${{ secrets.TMATE_SERVER_HOST }} | |
tmate-server-port: ${{ secrets.TMATE_SERVER_PORT }} | |
tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }} | |
tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }} | |
if: failure() && runner.debug == '1' | |
build: | |
name: Build and Push | |
needs: | |
- tests | |
uses: ./.github/workflows/build.yml | |
secrets: inherit |