File tree Expand file tree Collapse file tree 4 files changed +7573
-1684
lines changed Expand file tree Collapse file tree 4 files changed +7573
-1684
lines changed Original file line number Diff line number Diff line change
1
+ name : Check code formatting, lint and run unit tests
2
+
3
+ on :
4
+ pull_request :
5
+ workflow_call :
6
+
7
+ jobs :
8
+ format_and_lint :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Install Node
16
+ uses : actions/setup-node@v4
17
+ with :
18
+ node-version : " lts/*"
19
+
20
+ - name : Install Dependencies
21
+ run : npm ci
22
+
23
+ - name : Run ESLint
24
+ run : npm run lint
25
+
26
+ - name : Run Prettier
27
+ run : npm run prettier
28
+
29
+ - name : Run Unit Tests
30
+ run : npm test
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ jobs :
11
+ code-check :
12
+ uses : ./.github/workflows/code-check.yml
13
+ release :
14
+ name : Release
15
+ runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : write
18
+ issues : write
19
+ pull-requests : write
20
+ steps :
21
+ - name : Checkout
22
+ uses : actions/checkout@v4
23
+ with :
24
+ fetch-depth : 0
25
+ - name : Setup Node.js
26
+ uses : actions/setup-node@v4
27
+ with :
28
+ node-version : " lts/*"
29
+ - name : Install dependencies
30
+ run : npm ci
31
+ - name : Release
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ run : npx semantic-release
You can’t perform that action at this time.
0 commit comments