Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 231d126

Browse files
Merge branch 'main' into licensing
2 parents f983ff4 + 03bf952 commit 231d126

File tree

27 files changed

+57
-99
lines changed

27 files changed

+57
-99
lines changed

‎.github/workflows/main-test.yml‎

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,24 @@ on:
88
- "docs/"
99
- "**.md"
1010

11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: true
14-
1511
jobs:
1612
test:
1713
name: Coverage - Calculation
1814
runs-on: ubuntu-latest
15+
outputs:
16+
workspaces: ${{ steps.workspaces.outputs.directories }}
1917
steps:
2018
# Cloning
2119
- uses: actions/checkout@v3
2220

21+
# Collection
22+
- name: Collect NPM workspaces
23+
id: workspaces
24+
uses: secondtruth/collect-directories-by-contained-files@v1.0.0
25+
with:
26+
files-glob: "*/*/package.json"
27+
unique: true
28+
2329
# Setup and Caching
2430
- name: Use latest Node.js LTS version
2531
uses: actions/setup-node@v3
@@ -48,7 +54,7 @@ jobs:
4854

4955
# Send coverage information to Coveralls
5056
coverage:
51-
name: Coverage(${{ matrix.package }}) - Collection
57+
name: Coverage(${{ matrix.workspace }}) - Collection
5258
needs: test
5359
runs-on: ubuntu-latest
5460
defaults:
@@ -59,15 +65,8 @@ jobs:
5965
fail-fast: false
6066

6167
matrix:
62-
# Collect coverage for all packages and plugins
63-
package:
64-
- libraries/analysis-javascript
65-
- libraries/ast-visitor-javascript
66-
- libraries/instrumentation-javascript
67-
- libraries/search-javascript
68-
- plugins/plugin-javascript-event-listener-state-storage
69-
- tools/javascript
70-
68+
workspace: ${{ fromJson(needs.test.outputs.workspaces) }}
69+
7170
steps:
7271
# Cloning
7372
- uses: actions/checkout@v3
@@ -77,17 +76,28 @@ jobs:
7776
with:
7877
name: coverage-results
7978

79+
# Check if the coverage file exists
80+
- name: Check for coverage files
81+
id: check_files
82+
uses: andstor/file-existence-action@v2
83+
with:
84+
files: ${{ matrix.workspace }}/coverage/lcov.info
85+
8086
# Run the Coveralls action which uploads the lcov.info file
81-
- name: Coveralls(${{ matrix.package }})
87+
- name: Coveralls(${{ matrix.workspace }})
8288
uses: coverallsapp/github-action@master
89+
if: steps.check_files.outputs.files_exists == 'true'
8390
with:
8491
github-token: ${{ secrets.GITHUB_TOKEN }}
8592

8693
# We collect all coverages in parallel
8794
parallel: true
88-
flag-name: ${{ matrix.package }}
89-
base-path: ${{ matrix.package }}/
90-
path-to-lcov: ${{ github.workspace }}/${{ matrix.package }}/coverage/lcov.info
95+
flag-name: ${{ matrix.workspace }}
96+
base-path: ${{ matrix.workspace }}/
97+
path-to-lcov: ${{ matrix.workspace }}/coverage/lcov.info
98+
99+
- if: steps.check_files.outputs.files_exists == 'false'
100+
run: echo "::warning file=${{ matrix.workspace }}/coverage/lcov.info::Coverage file missing"
91101

92102
# Indicate sending coverage to Coveralls is finished
93103
coverage-finished:

‎.github/workflows/pr-test.yml‎

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,21 @@ jobs:
3535
architecture: x64
3636
report_coverage: true
3737

38+
outputs:
39+
workspaces: ${{ steps.workspaces.outputs.directories }}
40+
3841
steps:
3942
# Cloning
4043
- uses: actions/checkout@v3
4144

45+
# Collection
46+
- name: Collect NPM workspaces
47+
id: workspaces
48+
uses: secondtruth/collect-directories-by-contained-files@v1.0.0
49+
with:
50+
files-glob: "*/*/package.json"
51+
unique: true
52+
4253
# Setup and Caching
4354
- name: Use Node.js ${{ matrix.node-version }} (${{ matrix.architecture }})
4455
uses: actions/setup-node@v3
@@ -77,13 +88,9 @@ jobs:
7788
path: ${{ github.workspace }}/**/test-results.json
7889
reporter: mocha-json
7990

80-
# Mark job as successful even if the artifact or test report fails
81-
- run: exit 0
82-
if: ${{ steps.test.outcome == 'success' }}
83-
8491
# Send coverage information to Coveralls
8592
coverage:
86-
name: Coverage(${{ matrix.package }}) - Collection
93+
name: Coverage(${{ matrix.workspace }}) - Collection
8794
needs: test
8895
runs-on: ubuntu-latest
8996
defaults:
@@ -94,35 +101,40 @@ jobs:
94101
fail-fast: false
95102

96103
matrix:
97-
# Collect coverage for all packages and plugins
98-
package:
99-
- libraries/analysis-javascript
100-
- libraries/ast-visitor-javascript
101-
- libraries/instrumentation-javascript
102-
- libraries/search-javascript
103-
- plugins/plugin-javascript-event-listener-state-storage
104-
- tools/javascript
104+
workspace: ${{ fromJson(needs.test.outputs.workspaces) }}
105105

106106
steps:
107107
# Cloning
108108
- uses: actions/checkout@v3
109109

110110
# Download test results
111111
- uses: actions/download-artifact@v3
112+
id: artifact
112113
with:
113114
name: coverage-results
114115

116+
# Check if the coverage file exists
117+
- name: Check for coverage files
118+
id: check_files
119+
uses: andstor/file-existence-action@v2
120+
with:
121+
files: ${{ matrix.workspace }}/coverage/lcov.info
122+
115123
# Run the Coveralls action which uploads the lcov.info file
116-
- name: Coveralls(${{ matrix.package }})
124+
- name: Coveralls(${{ matrix.workspace }})
117125
uses: coverallsapp/github-action@master
126+
if: steps.check_files.outputs.files_exists == 'true'
118127
with:
119128
github-token: ${{ secrets.GITHUB_TOKEN }}
120129

121130
# We collect all coverages in parallel
122131
parallel: true
123-
flag-name: ${{ matrix.package }}
124-
base-path: ${{ matrix.package }}/
125-
path-to-lcov: ${{ github.workspace }}/${{ matrix.package }}/coverage/lcov.info
132+
flag-name: ${{ matrix.workspace }}
133+
base-path: ${{ matrix.workspace }}/
134+
path-to-lcov: ${{ matrix.workspace }}/coverage/lcov.info
135+
136+
- if: steps.check_files.outputs.files_exists == 'false'
137+
run: echo "::warning file=${{ matrix.workspace }}/coverage/lcov.info::Coverage file missing"
126138

127139
# Indicate sending coverage to Coveralls is finished
128140
coverage-finished:

‎libraries/analysis-javascript/lib/dependency/DependencyFactory.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ import { DependencyVisitor } from "./DependencyVisitor";
2626

2727
/**
2828
* Dependency generator for targets.
29-
*
30-
* @author Dimitri Stallenberg
3129
*/
3230
export class DependencyFactory
3331
extends Factory

‎libraries/analysis-javascript/lib/target/TargetFactory.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ import { TargetVisitor } from "./TargetVisitor";
3030

3131
/**
3232
* TargetFactory for Javascript.
33-
*
34-
* @author Dimitri Stallenberg
3533
*/
3634
export class TargetFactory
3735
extends Factory

‎libraries/analysis-javascript/lib/target/VisibilityType.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,5 @@
1818

1919
/**
2020
* Visibility Types.
21-
*
22-
* @author Dimitri Stallenberg
2321
*/
2422
export type VisibilityType = "public" | "private" | "protected";

‎libraries/analysis-javascript/lib/target/export/ExportFactory.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ import { ExportVisitor } from "./ExportVisitor";
2626

2727
/**
2828
* ExportFactory for Javascript.
29-
*
30-
* @author Dimitri Stallenberg
3129
*/
3230
export class ExportFactory extends Factory {
3331
/**

‎libraries/analysis-javascript/lib/type/resolving/TypeModelFactory.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ import { TypeModel } from "./TypeModel";
2323

2424
/**
2525
* Abstract TypeResolver class
26-
*
27-
* @author Dimitri Stallenberg
2826
*/
2927
export abstract class TypeModelFactory {
3028
/**

‎libraries/search-javascript/lib/testcase/sampling/JavaScriptTestCaseSampler.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ import { SetterGenerator } from "./generators/action/SetterGenerator";
5151

5252
/**
5353
* JavaScriptRandomSampler class
54-
*
55-
* @author Dimitri Stallenberg
5654
*/
5755
export abstract class JavaScriptTestCaseSampler extends EncodingSampler<JavaScriptTestCase> {
5856
private _rootContext: RootContext;

‎libraries/search-javascript/lib/testcase/statements/Statement.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ import { Encoding, EncodingSampler } from "@syntest/search";
2121

2222
import { ContextBuilder } from "../../testbuilding/ContextBuilder";
2323

24-
/**
25-
* @author Dimitri Stallenberg
26-
*/
2724
export abstract class Statement {
2825
private _variableIdentifier: string;
2926
private _typeIdentifier: string;

‎libraries/search-javascript/lib/testcase/statements/action/ConstantObject.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ import { Decoding } from "../Statement";
2525

2626
import { ActionStatement } from "./ActionStatement";
2727

28-
/**
29-
* @author Dimitri Stallenberg
30-
*/
3128
export class ConstantObject extends ActionStatement {
3229
constructor(
3330
variableIdentifier: string,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /