Merge pull request #511 from madeindjs/WF-36 #821
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: ci-e2e | |
on: | |
push: | |
branches: [ dev, master] | |
pull_request: | |
branches: [ dev, master] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
browser: [ "chromium", "firefox", "webkit" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python 3.11.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11.8" | |
cache: 'poetry' | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: install python3 environment | |
run: poetry install --with build | |
- name: install ci dependencies and generate code | |
run: poetry run alfred install.ci | |
- name: Build UI | |
run: npm run build | |
- name: Install E2E browsers | |
run: npm run e2e:setup ${{ matrix.browser }} | |
- name: Run E2E tests | |
run: poetry run alfred ci --e2e=${{ matrix.browser }} |