diff --git a/.github/workflows/test-sync-files.yml b/.github/workflows/test-sync-files.yml new file mode 100644 index 0000000000..ac6f9209a0 --- /dev/null +++ b/.github/workflows/test-sync-files.yml @@ -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 diff --git a/package.json b/package.json index 10672ebc18..bd8c19f046 100644 --- a/package.json +++ b/package.json @@ -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",