Merge pull request #1921 from aluzzardi/website-tests
ci: enable website tests on PRs
This commit is contained in:
commit
55849c459a
11
.github/workflows/test-website.yml
vendored
11
.github/workflows/test-website.yml
vendored
@ -1,4 +1,3 @@
|
|||||||
# TODO: https://github.com/dagger/dagger.io/issues/45
|
|
||||||
name: "Test Website"
|
name: "Test Website"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -6,9 +5,12 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- "website/**"
|
- "website/**"
|
||||||
|
- ".github/workflows/test-website.yml"
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
pull_request:
|
||||||
workflow_dispatch:
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- "website/**"
|
||||||
|
- ".github/workflows/test-website.yml"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-website:
|
test-website:
|
||||||
@ -30,7 +32,6 @@ jobs:
|
|||||||
install-command: yarn install --silent
|
install-command: yarn install --silent
|
||||||
start: |
|
start: |
|
||||||
yarn start
|
yarn start
|
||||||
yarn start:withAuth
|
|
||||||
working-directory: ./website
|
working-directory: ./website
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: failure()
|
if: failure()
|
||||||
|
1
website/cypress/integration/docs.spec.js
Normal file
1
website/cypress/integration/docs.spec.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
describe("Visit Docs website", function () {});
|
Reference in New Issue
Block a user