fixup on error counting for verifyReplication #761
Workflow file for this run
This file contains hidden or 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-22.04 | |
| permissions: | |
| # Need to explicitely add package write permissions for dependabot | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - 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@v6 | |
| 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-22.04 | |
| services: | |
| mongodb: | |
| image: ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }} | |
| ports: | |
| - 27017:27017 | |
| - 27018:27018 | |
| - 27019:27019 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'yarn' | |
| - run: sudo apt-get update -q | |
| # Ubuntu 24.04 doesn't have libssl1.1 which is needed by mongo-memory-server | |
| - name: install libssl1.1 | |
| run: | | |
| mkdir -p ~/ssl && cd ~/ssl | |
| wget -nc https://ftp.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb | |
| sudo dpkg -i libssl1.1_1.1.1w-0+deb11u1_amd64.deb | |
| - 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: "127.0.0.1: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 |