Skip to content

Commit 1846f86

Browse files
author
nzhang4
committed
update workflow
1 parent f782547 commit 1846f86

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/release-build.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,26 @@ jobs:
1313
node-version: 12
1414
- run: npm ci
1515
- run: npm test
16-
17-
build-release:
16+
test-action-locally:
1817
needs: npm-test
18+
runs-on: ubuntu-latest
19+
name: dry run action test
20+
steps:
21+
- name: Checkout repo
22+
uses: actions/checkout@v2
23+
- run: npm ci
24+
- name: Check xo formatter
25+
run: npm run xo
26+
- name: validate-json
27+
uses: ./
28+
id: validation
29+
with:
30+
file-extension: '.config,.json'
31+
ignore-files: 'README.md'
32+
ignore-directories: '.git'
33+
read-path: 'sample_folder'
34+
build-release:
35+
needs: test-action-locally
1936
name: release-build
2037
runs-on: ubuntu-latest
2138
steps:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@anyone-developer/anyone-validate-json",
3-
"version": "0.9.4",
3+
"version": "0.9.5",
44
"description": "This action helps you to validate JSON syntax in a specified directory. And write back with formatted content. read file recursively with specified file extensions.",
55
"main": "index.ts",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)