From bb42f78bef3d4ac79acab8c7e337fadb162e7445 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 28 Jan 2021 20:57:21 +0100 Subject: [PATCH 1/4] Tets commit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f767229b9..520388b3f 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ## About - + Mermaid is a Javascript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. The main purpose of Mermaid is to help documentation catch up with development. > Doc-Rot is a Catch-22 that Mermaid helps to solve. From 68a5f36f259568a251024be0df06dff9a750c526 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 28 Jan 2021 21:29:40 +0100 Subject: [PATCH 2/4] Test commit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 520388b3f..f990d91e1 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ## About - + Mermaid is a Javascript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. The main purpose of Mermaid is to help documentation catch up with development. > Doc-Rot is a Catch-22 that Mermaid helps to solve. From a0c2ffaac47b8fa47c1b5b43cde9f00850e2422b Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 28 Jan 2021 22:36:18 +0100 Subject: [PATCH 3/4] Adding cypress test from github --- .github/workflows/e2e.yml | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/e2e.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 000000000..ea36ec075 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,58 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x] + steps: + - uses: actions/checkout@v1 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Yarn + run: npm i yarn --global + + - name: Cache Node Modules + uses: actions/cache@v1 + with: + path: .cache + key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} + + - name: Install Packages + run: | + yarn config set cache-folder $GITHUB_WORKSPACE/.cache/yarn + yarn install --frozen-lockfile + env: + CYPRESS_CACHE_FOLDER: .cache/Cypress + + - name: Run Build + run: yarn build + + # - name: Run e2e Tests + # run: | + # yarn e2e + + #- name: Upload Test Results + # uses: coverallsapp/github-action@v1.0.1 + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + # parallel: true + + - name: Run E2E Tests + run: yarn e2e + env: + PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} + CYPRESS_CACHE_FOLDER: .cache/Cypress + + #- name: Post Upload Test Results + # uses: coverallsapp/github-action@master + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + # parallel-finished: true \ No newline at end of file From c05e3f8fe120b090c9d10f4db4371b88f208414b Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 28 Jan 2021 22:39:17 +0100 Subject: [PATCH 4/4] Rename to E2E --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index ea36ec075..53285bc28 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,4 +1,4 @@ -name: Build +name: E2E on: [push, pull_request]