about summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-15 19:24:35 -0500
committerGitHub <noreply@github.com>2023-02-16 01:24:35 +0100
commit418c3a4699222f0a0ed201282b328d4a2c46d8ad (patch)
tree602ad1f577bd73bc998d1ccfd19596a0b1dfbe20 /.github/workflows
parentfb8503e861b630728ead4be847309f1fd7c03dd4 (diff)
Move Jest tests to filtered GitHub Action (#23623)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test-js.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/test-js.yml b/.github/workflows/test-js.yml
new file mode 100644
index 000000000..60b8e318e
--- /dev/null
+++ b/.github/workflows/test-js.yml
@@ -0,0 +1,41 @@
+name: JavaScript Testing
+on:
+  push:
+    branches-ignore:
+      - 'dependabot/**'
+    paths:
+      - 'package.json'
+      - 'yarn.lock'
+      - '.nvmrc'
+      - '**/*.js'
+      - '**/*.snap'
+      - '.github/workflows/test-js.yml'
+
+  pull_request:
+    paths:
+      - 'package.json'
+      - 'yarn.lock'
+      - '.nvmrc'
+      - '**/*.js'
+      - '**/*.snap'
+      - '.github/workflows/test-js.yml'
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Clone repository
+        uses: actions/checkout@v3
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v3
+        with:
+          cache: yarn
+          node-version-file: '.nvmrc'
+
+      - name: Install all yarn packages
+        run: yarn --frozen-lockfile
+
+      - name: Jest testing
+        run: yarn test:jest --reporters github-actions summary