From a54317c5931fe5a0e4f9787072d9ca4faf7ab674 Mon Sep 17 00:00:00 2001 From: Garris Date: Fri, 23 Feb 2024 01:44:27 -0800 Subject: [PATCH] Delete .github/workflows/docker-smoke-test.yml --- .github/workflows/docker-smoke-test.yml | 115 ------------------------ 1 file changed, 115 deletions(-) delete mode 100644 .github/workflows/docker-smoke-test.yml diff --git a/.github/workflows/docker-smoke-test.yml b/.github/workflows/docker-smoke-test.yml deleted file mode 100644 index e2b51a759..000000000 --- a/.github/workflows/docker-smoke-test.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Docker Smoke Tests - -on: - workflow_dispatch: - workflow_call: - -permissions: - actions: write - checks: write - contents: write - pull-requests: write - packages: write - -env: - BRANCH_NAME: ${{ github.event.pull_request.head_ref || github.event.pull_request.head.ref_name || github.head_ref || github.ref_name }} - NODE_VERSION: 20 - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -jobs: - smoke-test-puppeteer: - name: 💨 Puppeteer - runs-on: ubuntu-latest - - permissions: - contents: read - packages: write - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 1 - ref: ${{ github.event.pull_request.head.sha || github.ref }} - - - name: Set Name and Tag Vars - env: - name: "${{ env.BRANCH_NAME }}" - run: | - echo "IMAGE_NAME_LC=${IMAGE_NAME,,}" >>${GITHUB_ENV} - echo "TAG=${name/\//-}" >> $GITHUB_ENV - echo "PV=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV - - - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: ⬢ Setup Node & Cache - uses: actions/setup-node@v4 - with: - cache: "npm" - cache-dependency-path: package-lock.json - - - name: ↧ Install - run: npm ci - - - name: Pull Image - run: | - docker pull $REGISTRY/$IMAGE_NAME_LC:$TAG - - - name: "𓋏 Run `backstop test --confg=backstop_features` in Docker" - continue-on-error: true - run: | - cd test/configs/ && docker run --rm -t --mount type=bind,source="$(pwd)",target=/src $REGISTRY/$IMAGE_NAME_LC:$TAG test --config=backstop_features - - smoke-test-playwright: - name: 💨 Playwright - runs-on: ubuntu-latest - - permissions: - contents: read - packages: write - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 1 - ref: ${{ github.event.pull_request.head.sha || github.ref }} - - - name: Set Name and Tag Vars - env: - name: "${{ env.BRANCH_NAME }}" - run: | - echo "IMAGE_NAME_LC=${IMAGE_NAME,,}" >>${GITHUB_ENV} - echo "TAG=${name/\//-}" >> $GITHUB_ENV - echo "PV=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV - - - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: ⬢ Setup Node & Cache - uses: actions/setup-node@v4 - with: - cache: "npm" - cache-dependency-path: package-lock.json - - - name: ↧ Install - run: npm ci - - - name: Pull Image - run: | - docker pull $REGISTRY/$IMAGE_NAME_LC:$TAG - - - name: "🎭 Run `backstop test --confg=backstop_features_pw` in Docker" - continue-on-error: true - run: | - cd test/configs/ && docker run --rm -t --entrypoint='' --mount type=bind,source="$(pwd)",target=/src $REGISTRY/$IMAGE_NAME_LC:$TAG sh -c "chmod -R 777 /root && chmod -R 777 /opt/pw-browsers && npm --verbose i -D playwright && npx --verbose --foreground-scripts --yes playwright@$PLAYWRIGHT_VERSION install && backstop test --config=backstop_features_pw"