Skip to content

Commit 48b11f3

Browse files
committed
ci: reorganizing the GitHub CI workflows
1 parent ce85b4d commit 48b11f3

File tree

3 files changed

+37
-49
lines changed

3 files changed

+37
-49
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
name: "CMake"
1+
name: "Building and testing ArkScript"
22

33
on:
44
push:
55
branches: [dev, master]
66
paths-ignore:
7-
- '.github/workflows/clang-format.yml'
87
- '.github/workflows/docker.yml'
98
- '.github/workflows/label.yml'
109
- '.github/workflows/lizard.yml'
1110
- '.github/workflows/release.yml'
12-
- '.github/workflows/repo-visualizer.yml'
1311
- '.vscode/*.*'
1412
- 'examples/*.ark'
1513
- 'images/*.*'
@@ -27,9 +25,45 @@ env:
2725
SQLITE_VERSION: 3390100 # 3.39.1
2826

2927
jobs:
28+
check:
29+
name: Formatting check
30+
runs-on: ubuntu-latest
31+
32+
strategy:
33+
matrix:
34+
path:
35+
- 'src'
36+
- 'include'
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
41+
- name: Run clang-format check for C++
42+
uses: HorstBaerbel/action-clang-format@master
43+
with:
44+
scandir: ${{ matrix.path }}
45+
style: 'file'
46+
47+
repo_visualizer:
48+
runs-on: ubuntu-latest
49+
needs: []
50+
51+
steps:
52+
- name: Checkout code
53+
uses: actions/checkout@master
54+
55+
- name: Update diagram
56+
uses: githubocto/repo-visualizer@main
57+
with:
58+
excluded_paths: 'dist,node_modules,submodules'
59+
should_push: false
60+
output_file: 'diagram.svg'
61+
artifact_name: 'diagram'
62+
3063
build:
3164
runs-on: ${{ matrix.config.os }}
3265
name: ${{ matrix.config.name }}
66+
needs: [check]
3367

3468
strategy:
3569
fail-fast: false

.github/workflows/clang-format.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/repo-visualizer.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)