Skip to content

Commit

Permalink
ci: Reuse workflow for js
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 25, 2024
1 parent 70e7429 commit ec8d0a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
9 changes: 0 additions & 9 deletions docs/javascript/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,6 @@ Create a ``.github/workflows/js.yml`` file. As a base, use:
.. literalinclude:: samples/js.yml
:language: yaml

Maintenance
~~~~~~~~~~~

Find and compare ``js.yml`` files:

.. code-block:: bash
find . -name js.yml -exec bash -c 'echo $(tail -r {} | tail +2 | tail -r | shasum - | cut -d" " -f1) {}' \;
Reference
---------

Expand Down
11 changes: 4 additions & 7 deletions docs/javascript/samples/js.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Lint JavaScript
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: biomejs/setup-biome@v2
- run: biome ci --indent-style=space --line-width=119 path/to/file.js
lint:
uses: open-contracting/.github/.github/workflows/js.yml@main
with:
filenames: path/to/file.js

0 comments on commit ec8d0a9

Please sign in to comment.