Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add test for sync_files #5368

Merged
merged 9 commits into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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