@contractspec/action.validation 3.7.1 → 3.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @contractspec/action.validation
2
2
 
3
+ ## 3.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: release security
8
+
9
+ ## 3.7.3
10
+
11
+ ### Patch Changes
12
+
13
+ - fix: release
14
+
15
+ ## 3.7.2
16
+
17
+ ### Patch Changes
18
+
19
+ - 8cd229b: fix: release
20
+
3
21
  ## 3.7.1
4
22
 
5
23
  ### Patch Changes
package/action.yml CHANGED
@@ -223,7 +223,6 @@ runs:
223
223
  with:
224
224
  sarif_file: ${{ inputs.working-directory }}/.contractspec-ci/results.sarif
225
225
  category: contractspec
226
- continue-on-error: true
227
226
 
228
227
  - name: Upload results as artifact
229
228
  if: always()
@@ -235,7 +234,6 @@ runs:
235
234
  ${{ inputs.working-directory }}/.contractspec-ci/results.sarif
236
235
  ${{ inputs.working-directory }}/.contractspec-ci/impact.json
237
236
  retention-days: 30
238
- continue-on-error: true
239
237
 
240
238
  # Impact detection mode
241
239
  - name: Run ContractSpec impact detection
@@ -368,7 +366,6 @@ runs:
368
366
  body
369
367
  });
370
368
  }
371
- continue-on-error: true
372
369
 
373
370
  - name: Post PR comment with impact results
374
371
  if: inputs.mode == 'impact' && inputs.pr-comment == 'true' && github.event_name == 'pull_request' && always()
@@ -453,4 +450,3 @@ runs:
453
450
  body
454
451
  });
455
452
  }
456
- continue-on-error: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/action.validation",
3
- "version": "3.7.1",
3
+ "version": "3.7.4",
4
4
  "description": "GitHub Action for running ContractSpec CI checks",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,6 +14,9 @@
14
14
  "validation",
15
15
  "contracts"
16
16
  ],
17
+ "scripts": {
18
+ "test": "bun test"
19
+ },
17
20
  "author": "LSSM",
18
21
  "license": "MIT",
19
22
  "publishConfig": {
@@ -0,0 +1,22 @@
1
+ import { describe, expect, it } from 'bun:test';
2
+ import { readFileSync } from 'node:fs';
3
+ import { join } from 'node:path';
4
+
5
+ const actionPath = join(import.meta.dir, '..', 'action.yml');
6
+ const actionYaml = readFileSync(actionPath, 'utf8');
7
+
8
+ describe('action.validation metadata', () => {
9
+ it('declares the composite action entrypoint and outputs', () => {
10
+ expect(actionYaml).toContain("name: 'ContractSpec CI'");
11
+ expect(actionYaml).toContain("using: 'composite'");
12
+ expect(actionYaml).toContain('success:');
13
+ expect(actionYaml).toContain('errors:');
14
+ expect(actionYaml).toContain('warnings:');
15
+ });
16
+
17
+ it('runs machine-readable CI output and uploads artifacts', () => {
18
+ expect(actionYaml).toContain('bunx contractspec ci --format json');
19
+ expect(actionYaml).toContain('results.json');
20
+ expect(actionYaml).toContain('results.sarif');
21
+ });
22
+ });