From ec956020601c24c46b77b3b33c16409e5944d1bb Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Tue, 29 Mar 2022 11:15:55 -0700 Subject: [PATCH] ci: enable website tests on PRs Signed-off-by: Andrea Luzzardi --- .github/workflows/test-website.yml | 11 ++++++----- website/cypress/integration/docs.spec.js | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 website/cypress/integration/docs.spec.js diff --git a/.github/workflows/test-website.yml b/.github/workflows/test-website.yml index 1be32e39..95791f64 100644 --- a/.github/workflows/test-website.yml +++ b/.github/workflows/test-website.yml @@ -1,4 +1,3 @@ -# TODO: https://github.com/dagger/dagger.io/issues/45 name: "Test Website" on: @@ -6,9 +5,12 @@ on: branches: [main] paths: - "website/**" - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + - ".github/workflows/test-website.yml" + pull_request: + branches: [main] + paths: + - "website/**" + - ".github/workflows/test-website.yml" jobs: test-website: @@ -30,7 +32,6 @@ jobs: install-command: yarn install --silent start: | yarn start - yarn start:withAuth working-directory: ./website - uses: actions/upload-artifact@v1 if: failure() diff --git a/website/cypress/integration/docs.spec.js b/website/cypress/integration/docs.spec.js new file mode 100644 index 00000000..bc0a6835 --- /dev/null +++ b/website/cypress/integration/docs.spec.js @@ -0,0 +1 @@ +describe("Visit Docs website", function () {});