aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-23 06:18:56 -0500
committerGitHub <noreply@github.com>2024-02-23 11:18:56 +0000
commit8078e0ec7279916e56bdc8bab88ee7f1e1594425 (patch)
treea817e8aa6d8a8f3647e341c45a3cca5eebe44811 /.github/workflows/ci.yml
parent62ac615450ef8b96fa9dd90b8b4e7fe486cc77a6 (diff)
Package scripts update (#714)
* Update license-report commands * Rename build-libs * Update test-lint-js * Rename test-lint-json * Update test-lint-css * Rename test-lint-html * Update test-ts * Update test-code * Update test-build * Rename * Test JSON types * Distinguish JS tests from JSON tests * Add bench test * Test markdown * Add fast test option * Rename test:code * Describe scripts * Add test-build action * Add test:static-analysis * Update CI * Fix path * Fix missing type definition
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml99
1 files changed, 66 insertions, 33 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ea42aab4..a9c56cdc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -10,9 +10,72 @@ on:
merge_group:
jobs:
- test:
+ static-analysis:
+ name: Static Analysis
runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup node
+ uses: actions/setup-node@v4
+ with:
+ node-version-file: "package.json"
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Build third-party libraries
+ run: npm run build:libs
+
+ - name: Run static analysis tests
+ run: npm run test:static-analysis
+
+ static-analysis-json:
+ name: Static Analysis (JSON)
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup node
+ uses: actions/setup-node@v4
+ with:
+ node-version-file: "package.json"
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Build third-party libraries
+ run: npm run build:libs
+
+ - name: Run static analysis tests
+ run: npm run test:json
+
+ unit-tests:
+ name: Unit Tests
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Setup node
+ uses: actions/setup-node@v4
+ with:
+ node-version-file: "package.json"
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Build third-party libraries
+ run: npm run build:libs
+
+ - name: Run unit tests
+ run: npm run test:unit
+
+ test-build:
+ name: Test Build
+ runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -26,40 +89,10 @@ jobs:
run: npm ci
- name: Build Libs
- run: npm run build-libs
-
- - name: Lint JS
- run: npm run test-lint-js
- env:
- CI: true
-
- - name: Validate JS Types
- run: npm run test-ts
- env:
- CI: true
-
- - name: Lint CSS
- run: npm run test-lint-css
- env:
- CI: true
-
- - name: Lint HTML
- run: npm run test-lint-html
- env:
- CI: true
-
- - name: Tests
- run: npm run test-code
- env:
- CI: true
-
- - name: Test JSON
- run: npm run test-json
- env:
- CI: true
+ run: npm run build:libs
- name: Build Legal
- run: npm run license-report
+ run: npm run license-report:html
- name: Build
run: npm run build