diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9624c2c..7cd9c36 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,11 @@ jobs: integration-tests: needs: build runs-on: ubuntu-latest + strategy: + matrix: + browser: + - chrome + - firefox steps: - uses: actions/checkout@v2.3.1 - uses: cachix/install-nix-action@v20 @@ -35,7 +40,7 @@ jobs: name: quickstrom signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' - run: nix show-config - - run: nix develop '.#integration-tests' --command integration-tests/run.py + - run: nix develop '.#integration-tests' --command integration-tests/run.py ${{matrix.browser}} lint-docs: runs-on: ubuntu-latest diff --git a/integration-tests/run.py b/integration-tests/run.py index 6b247cf..b6dfbdc 100755 --- a/integration-tests/run.py +++ b/integration-tests/run.py @@ -66,8 +66,11 @@ def run_tests(browser: str): run_test(browser, test) if __name__ == "__main__": - browser = "chrome" + browser = None if len(sys.argv) >= 2: browser = sys.argv[1] + else: + browser = "chrome" + print(f"No browser specified, defaulting to '{browser}'.") run_tests(browser)