diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml new file mode 100644 index 0000000..4fcfd8a --- /dev/null +++ b/.github/workflows/javascript.yml @@ -0,0 +1,32 @@ +name: javascript + +on: + push: + paths: + - .github/workflows/javascript.yml + - javascript/** + pull_request: + branches: + - main + paths: + - .github/workflows/javascript.yml + - javascript/** + +defaults: + run: + working-directory: javascript + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + ## Cache not needed because we have no dependencies. + ## If we need it, here's how + # cache: npm + # cache-dependency-path: 'javascript/package-lock.json' + - run: npm test diff --git a/javascript/readme.md b/javascript/readme.md new file mode 100644 index 0000000..d5478e7 --- /dev/null +++ b/javascript/readme.md @@ -0,0 +1,3 @@ +The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text. + +This is the JavaScript implementation of a library available in many languages, for more information and API documentation please refer to the [project readme](https://github.com/dmsnell/diff-match-patch). \ No newline at end of file