diff --git a/.github/workflows/visual-base.yml b/.github/workflows/visual-base.yml index 561b6152bd..a288c77eb2 100644 --- a/.github/workflows/visual-base.yml +++ b/.github/workflows/visual-base.yml @@ -3,42 +3,33 @@ name: Visual All Regression Test on: workflow_dispatch: +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: CreateBaseImages: runs-on: ubuntu-22.04 env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + TURBO_REMOTE_ONLY: true + HUSKY: 0 steps: - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: 2 - - name: Setup NodeJS - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: 'npm' - - - name: Update npm registry - run: npm run registry - - - name: Install dependencies - run: npm install - - - name: Install Cypress - run: npm run cy:install - - - name: Build - run: npm run cy:build + - uses: ./.github/workflows/actions/setup + - uses: ./.github/workflows/actions/test-setup - name: Run Cypress - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v5 with: start: npm run cy:start wait-on: 'http://localhost:3333' - working-directory: packages/components + working-directory: test install: false browser: chrome env: type=base @@ -53,8 +44,6 @@ jobs: with: name: cypress-snapshots path: packages/components/cypress/snapshots - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Commit base images uses: EndBug/add-and-commit@v9