Skip to content

Commit

Permalink
ci: add test for sync_files (quisquous#5368)
Browse files Browse the repository at this point in the history
  • Loading branch information
quisquous authored Apr 24, 2023
1 parent 5cd6725 commit 6719859
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test-sync-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Sync Files Test

on:
push:
branches:
- main
paths:
- 'ui/raidboss/**'
- '.github/workflows/test-sync-files.yml'
- 'package.json'
pull_request:
paths:
- 'ui/raidboss/**'
- '.github/workflows/test-sync-files.yml'
- 'package.json'

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-js-env

- name: npm run sync-files
run: |
npm run sync-files
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"stylelintfix": "stylelint --fix resources/**/*.css ui/**/*.css user/**/*.css test/**/*.css util/**/*.css",
"markdownlint": "markdownlint . --ignore node_modules --ignore publish --ignore plugin/ThirdParty",
"test": "mocha",
"sync-files": "ts-node util/sync_files.ts && git diff --exit-code",
"lint-staged": "lint-staged",
"coverage-report": "ts-node util/gen_coverage_report.ts",
"util": "ts-node util/index.ts",
Expand Down

0 comments on commit 6719859

Please sign in to comment.