Update tests #205
Workflow file for this run
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: 'Test' | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
ffchromium: | |
name: Firefox and Chromium | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
cache: 'npm' | |
cache-dependency-path: package.json | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Cache Hass | |
id: cache-hass | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/hasstest-venv | |
key: ${{ runner.os }}-hass | |
- name: Install NPM Dependencies | |
run: npm install | |
- name: Install playwright | |
run: npx playwright install --with-deps | |
- name: Install Hass | |
run: npx hass-taste-test | |
- name: Build | |
run: npm run build | |
- name: Set up tests | |
run: test/setup.sh | |
- name: Test Firefox | |
run: BROWSER=firefox npm run test || BROWSER=firefox npm run test | |
- name: Test Chromium | |
run: BROWSER=chromium npm run test || BROWSER=chromium npm run test | |
- name: Upload artifact | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: artifact | |
path: | | |
**/__diff_output__/**/ | |
webkit: | |
name: Webkit | |
runs-on: ubuntu-latest | |
if: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache Hass | |
id: cache-hass | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/hasstest-venv | |
key: ${{ runner.os }}-hass | |
- name: Install Hass | |
run: npm install && npx hass-taste-test | |
- name: Build | |
run: npm run build | |
- name: Install Libraries | |
run: sudo apt-get -qq install libegl1 libopus0 libwoff1 libharfbuzz-icu0 gstreamer1.0-plugins-base libgstreamer-gl1.0-0 gstreamer1.0-plugins-bad libopenjp2-7 libwebpdemux2 libenchant1c2a libhyphen0 libgles2 gstreamer1.0-libav libevdev-dev | |
- name: Test Webkit | |
run: BROWSER=webkit npm run test || BROWSER=webkit npm run test | |
- name: Upload artifact | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: artifact | |
path: | | |
**/__diff_output__/**/ |