Skip to content

Commit

Permalink
Merge pull request #55 from sky172839465/ci
Browse files Browse the repository at this point in the history
docs: fix linter
  • Loading branch information
sky172839465 authored Jan 31, 2024
2 parents 60f14ec + 9ec1eca commit 2c55eed
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 67 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: schedule testing
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * 3,6"
permissions:
Expand Down Expand Up @@ -93,13 +94,14 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./e2e-reports
destination_dir: ${{ github.sha }}
commit_message: "docs: 🤖 upload schedule report ${{ github.sha }}"
destination_dir: ${{ github.run_id }}
commit_message: "docs: 🤖 upload schedule report ${{ github.run_id }}"
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"

clean_up:
needs: [static_and_unit_test, functional_test]
if: ${{ always() }}
name: Clean up
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -135,7 +137,7 @@ jobs:
with:
script: |
const { getGHPageInfo } = require('./scripts/ghpage-helper')
const info = await getGHPageInfo({ context }, '${{ github.sha }}')
const info = await getGHPageInfo({ context }, '${{ github.run_id }}')
console.log(info)
core.exportVariable('GH_PAGE_URL', info.ghPage)
- id: get-date
Expand Down
137 changes: 73 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

Front-end integration with free service.<br /><br />
Includes:

- pull request integration
- release integration
- schedule testing integration
Expand All @@ -16,78 +17,86 @@ Includes:
- <details open>
<summary>pull request</summary>

[pull_request.yml](/.github/workflows/pull_request.yml)
```mermaid
graph LR;
Start(PR event)
subgraph Env clean up
Z1(Remove fly.io pr env)
Z2(Remove development env)
Z1-->Z2
end
subgraph PR status
StatusA(open / reopen / sync)
StatusB(close)
end
subgraph Functional test
A1(Deploy pr env fly.io)
A2(E2E test)
A3(Upload E2E report)
A1-->A2-->A3
end
subgraph Static test
B1(Lint test)
B2(Unit test)
B1-->B2
end
subgraph Clean up
C1(Download artifacts)
C2(Generate summary)
C3(Add summary comment)
C1-->C2-->C3
end
Start-->StatusA & StatusB
StatusA-->A1 & B1
StatusB-->Z1
A3 & B2-->C1
```
[pull_request.yml](/.github/workflows/pull_request.yml)

```mermaid
graph LR;
Start(PR event)
subgraph Env clean up
Z1(Remove fly.io pr env)
Z2(Remove development env)
Z1-->Z2
end
subgraph PR status
StatusA(open / reopen / sync)
StatusB(close)
end
subgraph Functional test
A1(Deploy pr env fly.io)
A2(E2E test)
A3(Upload E2E report)
A1-->A2-->A3
end
subgraph Static test
B1(Lint test)
B2(Unit test)
B1-->B2
end
subgraph Clean up
C1(Download artifacts)
C2(Generate summary)
C3(Add summary comment)
C1-->C2-->C3
end
Start-->StatusA & StatusB
StatusA-->A1 & B1
StatusB-->Z1
A3 & B2-->C1
```

</details>

- <details>
<summary>release</summary>

[release.yml](/.github/workflows/release.yml)
```mermaid
graph LR;
A1(Bump version)
A2(Deploy to fly.io)
A1-->A2
```
[release.yml](/.github/workflows/release.yml)

```mermaid
graph LR;
A1(Bump version)
A2(Deploy to fly.io)
A1-->A2
```

</details>

- <details>
<summary>schedule</summary>

[schedule.yml](/.github/workflows/schedule.yml) . [dashboard](https://github.com/sky172839465/integration-example/issues/12#issuecomment-1890858131)
```mermaid
graph LR;
A1(Trigger by cron)
subgraph Functional test
B1(E2E test)
B2(Upload E2E report)
B1-- test online env -->B2
end
subgraph Static test
C1(Lint test)
C2(Unit test)
C1-->C2
end
subgraph Clean up
A2(Generate summary)
A3(Update summary to dashboard)
A2-->A3
end
A1-->B1 & C1
B2 & C2-->A2
```
[schedule.yml](/.github/workflows/schedule.yml) . [dashboard](https://github.com/sky172839465/integration-example/issues/12#issuecomment-1890858131)

```mermaid
graph LR;
A1(Trigger by cron)
subgraph Functional test
B1(E2E test)
B2(Upload E2E report)
B1-- test online env -->B2
end
subgraph Static test
C1(Lint test)
C2(Unit test)
C1-->C2
end
subgraph Clean up
A2(Generate summary)
A3(Update summary to dashboard)
A2-->A3
end
A1-->B1 & C1
B2 & C2-->A2
```

</details>

---
Expand Down

0 comments on commit 2c55eed

Please sign in to comment.