Skip to content

Commit

Permalink
Update regression.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN authored Dec 30, 2023
1 parent aab1c59 commit 020ea43
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,32 @@ on:
description: 'Node.js version (default: 16)'

jobs:
init:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node || 16 }}
- name: Init application
run: rete-qa init -s ${{ inputs.name }} -sv ${{ inputs.version }}
env:
CI: ""
- name: Prune node_modules
run: npx rimraf --glob **/node_modules
working-directory: .rete-qa
- uses: actions/upload-artifact@v3
with:
name: rete-qa
path: .rete-qa
retention-days: 3
test:
timeout-minutes: 60
runs-on: ubuntu-latest
needs: [init]
strategy:
matrix:
browser: [chromium,firefox,webkit]
steps:
- name: Install fonts
run: |
Expand All @@ -51,19 +74,19 @@ jobs:
fonts-freefont-ttf
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get -qyy clean
- uses: actions/download-artifact@v4
with:
name: rete-qa
path: .rete-qa
- uses: actions/setup-node@v3
with:
node-version: ${{ github.event.inputs.node || inputs.node || 16 }}
node-version: ${{ inputs.node || 16 }}
- name: Install Rete QA
run: npm i -g rete-qa rete-kit
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Init application
run: rete-qa init -s ${{ github.event.inputs.name || inputs.name }} -sv ${{ github.event.inputs.version || inputs.version }}
env:
CI: ""
- name: Run Playwright tests
run: rete-qa test -s ${{ github.event.inputs.name || inputs.name }} -sv ${{ github.event.inputs.version || inputs.version }}
run: rete-qa test -s ${{ inputs.name }} -sv ${{ inputs.version }} --project ${{ matrix.browser }}
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down

0 comments on commit 020ea43

Please sign in to comment.