aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--.github/workflows/release.yml4
-rw-r--r--.github/workflows/tests.yml20
3 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5f9ab279..f50cc308 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,7 +12,9 @@ jobs:
# Initialization
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- - run: npm install
+ with:
+ node-version: '16'
+ - run: npm ci
- name: Copy configuration
run: cp config.json.example config.json
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 538ee2ff..660e1095 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,7 +14,9 @@ jobs:
# Initialization
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- - run: npm install
+ with:
+ node-version: '16'
+ - run: npm ci
- name: Copy configuration
run: cp config.json.example config.json
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 00000000..83a957e4
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,20 @@
+name: Tests
+
+on: [push, pull_request]
+
+jobs:
+
+ build:
+ name: Run tests
+ runs-on: ubuntu-latest
+
+ steps:
+ # Initialization
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: '16'
+ - run: npm ci
+
+ - name: Run tests
+ run: npm run test-without-building \ No newline at end of file