mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
chore(v2): Run E2E tests in CI (#2929)
This commit is contained in:
parent
8eed245000
commit
1fdc8c5da1
1 changed files with 32 additions and 0 deletions
32
.github/workflows/e2e-test.yml
vendored
Normal file
32
.github/workflows/e2e-test.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: E2E Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Trigger the workflow on push or pull request,
|
||||||
|
# but only for the master branch
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [10.x]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- name: Installation
|
||||||
|
run: yarn
|
||||||
|
- name: Setup test-website project against master release
|
||||||
|
run: yarn test:build:v2
|
||||||
|
- name: Build test-website project
|
||||||
|
run: cd test-website && yarn build
|
||||||
|
env:
|
||||||
|
CI: true
|
Loading…
Add table
Add a link
Reference in a new issue