summary refs log tree commit diff
path: root/.github/workflows/style.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/style.yml')
-rw-r--r--.github/workflows/style.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
new file mode 100644
index 00000000..931449b7
--- /dev/null
+++ b/.github/workflows/style.yml
@@ -0,0 +1,27 @@
+name: Style
+
+on:
+  push:
+    branches: [ "**" ]
+  pull_request:
+    branches: [ "**" ]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        node-version: [18.x]
+        # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
+
+    steps:
+    - uses: actions/checkout@v3
+    - name: Use Node.js ${{ matrix.node-version }}
+      uses: actions/setup-node@v3
+      with:
+        node-version: ${{ matrix.node-version }}
+        cache: 'npm'
+    - run: npx eslint .
+    - run: npx prettier --check .
\ No newline at end of file