]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Create npm-grunt.yml (#6209) develop
authorIskren Ivov Chernev <me@iskren.info>
Sun, 18 Feb 2024 12:35:45 +0000 (14:35 +0200)
committerGitHub <noreply@github.com>
Sun, 18 Feb 2024 12:35:45 +0000 (14:35 +0200)
Add github actions to run tests against develop and PRs

.github/workflows/npm-grunt.yml [new file with mode: 0644]

diff --git a/.github/workflows/npm-grunt.yml b/.github/workflows/npm-grunt.yml
new file mode 100644 (file)
index 0000000..fbba302
--- /dev/null
@@ -0,0 +1,29 @@
+name: NodeJS with Grunt
+
+on:
+  push:
+    branches: [ "develop" ]
+  pull_request:
+    branches: [ "develop" ]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        node-version: [14.x, 16.x, 18.x]
+
+    steps:
+    - uses: actions/checkout@v3
+
+    - name: Use Node.js ${{ matrix.node-version }}
+      uses: actions/setup-node@v3
+      with:
+        node-version: ${{ matrix.node-version }}
+
+    - name: Build
+      run: |
+        npm install
+        grunt
+