Update ci.yml

This commit is contained in:
Niklas von Hertzen 2020-07-28 23:48:05 +08:00 committed by GitHub
parent df44c86f68
commit ebe9eccbd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,13 +86,13 @@ jobs:
with:
name: build
- name: Run browser tests
if: ${{ matrix.config.xvfb !== true }}
if: ${{ matrix.config.xvfb != true }}
run: npm run karma
- name: Start Xvfb
if: ${{ matrix.config.xvfb === true }}
if: ${{ matrix.config.xvfb == true }}
run: Xvfb :99 &
- name: Run browser tests
if: ${{ matrix.config.xvfb === true }}
if: ${{ matrix.config.xvfb == true }}
run: DISPLAY=:99 npm run karma
- name: Upload screenshots
uses: actions/upload-artifact@v2