From cd7e45be2080513c8ade440c674501ec1452d33a Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 15:36:31 +0300 Subject: [PATCH 01/12] Add basic Github CI test --- .github/workflows/testsuite.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/testsuite.yml diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml new file mode 100644 index 0000000..2c2d672 --- /dev/null +++ b/.github/workflows/testsuite.yml @@ -0,0 +1,34 @@ +# the test suite runs the tests (headless, server+client) for multiple Meteor releases +name: Test suite +on: + push: + branches: + - master + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + meteorRelease: + - '--release 2.8.1' + - '--release 2.15' + - '--release 3.0-rc.4' + # Latest version + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + - name: Install Dependencies + run: | + curl https://install.meteor.com | /bin/sh + npm i -g @zodern/mtest + - name: Run Tests + run: | + mtest --package ./ --once ${{ matrix.meteorRelease }} \ No newline at end of file From 34b1ff87bca8bf29e0804a377f4bb329dc26efc8 Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 15:38:05 +0300 Subject: [PATCH 02/12] Remove travis --- .travis.yml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c519ba0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -os: - - linux -language: node_js -node_js: - - "14.21.3" -before_install: - - "curl -L http://git.io/ejPSng | /bin/sh" -script: - - npm run test From 9f98ff2531f7c16aba2b4a858fb331e3c453dea4 Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 15:48:18 +0300 Subject: [PATCH 03/12] Install corresponding Meteor release --- .github/workflows/testsuite.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 2c2d672..6f97a40 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -12,9 +12,9 @@ jobs: strategy: matrix: meteorRelease: - - '--release 2.8.1' - - '--release 2.15' - - '--release 3.0-rc.4' + - '2.8.1' + - '2.15' + - '3.0-rc.4' # Latest version steps: - name: Checkout code @@ -27,8 +27,8 @@ jobs: - name: Install Dependencies run: | - curl https://install.meteor.com | /bin/sh + curl https://install.meteor.com/\?release\=${{ matrix.meteorRelease }} | /bin/sh npm i -g @zodern/mtest - name: Run Tests run: | - mtest --package ./ --once ${{ matrix.meteorRelease }} \ No newline at end of file + mtest --package ./ --once --release ${{ matrix.meteorRelease }} \ No newline at end of file From d25a4c49023a46f68ba26af4e54bc77057377f93 Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 15:57:18 +0300 Subject: [PATCH 04/12] Try different RC number --- .github/workflows/testsuite.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 6f97a40..0dca238 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -12,9 +12,10 @@ jobs: strategy: matrix: meteorRelease: + - '1.7.0.5' - '2.8.1' - '2.15' - - '3.0-rc.4' + - '3.0-rc.3' # Latest version steps: - name: Checkout code From b85ec313b045dc47524f751a4fc6aa2bc4014a04 Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 15:59:35 +0300 Subject: [PATCH 05/12] Run tests without --release --- .github/workflows/testsuite.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 0dca238..49aac4a 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -15,7 +15,7 @@ jobs: - '1.7.0.5' - '2.8.1' - '2.15' - - '3.0-rc.3' + - '3.0-rc.4' # Latest version steps: - name: Checkout code @@ -32,4 +32,4 @@ jobs: npm i -g @zodern/mtest - name: Run Tests run: | - mtest --package ./ --once --release ${{ matrix.meteorRelease }} \ No newline at end of file + mtest --package ./ --once \ No newline at end of file From 245665205f3231bdcd8863e3cc8f2dbe1509510c Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 16:12:21 +0300 Subject: [PATCH 06/12] fix --- .github/workflows/testsuite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 49aac4a..98824fb 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -32,4 +32,4 @@ jobs: npm i -g @zodern/mtest - name: Run Tests run: | - mtest --package ./ --once \ No newline at end of file + mtest --package ./ --once release ${{ matrix.meteorRelease }} \ No newline at end of file From 027b530c20ad65939dbde9df1955f4a37f8667cc Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 16:16:12 +0300 Subject: [PATCH 07/12] Remove --release option --- .github/workflows/testsuite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 98824fb..49aac4a 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -32,4 +32,4 @@ jobs: npm i -g @zodern/mtest - name: Run Tests run: | - mtest --package ./ --once release ${{ matrix.meteorRelease }} \ No newline at end of file + mtest --package ./ --once \ No newline at end of file From 28c25472bf83ae35edb6aaa88e5708997355fef4 Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 16:30:11 +0300 Subject: [PATCH 08/12] fix --- .github/workflows/testsuite.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 49aac4a..4eb43e2 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -12,10 +12,9 @@ jobs: strategy: matrix: meteorRelease: - - '1.7.0.5' - - '2.8.1' - - '2.15' - - '3.0-rc.4' + - "--release 2.8.1" + - "--release 2.15" + - "--release 3.0-rc.4" # Latest version steps: - name: Checkout code @@ -24,12 +23,15 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: "20.x" - name: Install Dependencies run: | - curl https://install.meteor.com/\?release\=${{ matrix.meteorRelease }} | /bin/sh + curl https://install.meteor.com | /bin/sh npm i -g @zodern/mtest - name: Run Tests run: | - mtest --package ./ --once \ No newline at end of file + # Fix using old versions of Meteor + export NODE_TLS_REJECT_UNAUTHORIZED=0 + + mtest --package ./ --once ${{ matrix.meteorRelease }} From 4a5fe82af2274e4193074fb5058797eef64f988f Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 16:32:14 +0300 Subject: [PATCH 09/12] Only support 3.0 --- .github/workflows/testsuite.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 4eb43e2..442417b 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -12,8 +12,6 @@ jobs: strategy: matrix: meteorRelease: - - "--release 2.8.1" - - "--release 2.15" - "--release 3.0-rc.4" # Latest version steps: From 9e2805ba5105da1eb4a3f7ecc95c885f299589cb Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 17:19:34 +0300 Subject: [PATCH 10/12] fix --- .github/workflows/testsuite.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 442417b..c85dd8c 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -12,7 +12,10 @@ jobs: strategy: matrix: meteorRelease: - - "--release 3.0-rc.4" + - "--release 1.7.0.5" + - "--release 2.7" + - "--release 2.8.1" + - "--release 2.15" # Latest version steps: - name: Checkout code @@ -21,7 +24,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version: "12.x" - name: Install Dependencies run: | From f4651a2a7f184a588537880ef359968b1dd4129f Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 17:23:51 +0300 Subject: [PATCH 11/12] Remove tests for Meteor release 2.7 --- .github/workflows/testsuite.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index c85dd8c..62b9c6f 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -12,7 +12,6 @@ jobs: strategy: matrix: meteorRelease: - - "--release 1.7.0.5" - "--release 2.7" - "--release 2.8.1" - "--release 2.15" From aa116d8b80eb9f70da1314493e3c60a822096e02 Mon Sep 17 00:00:00 2001 From: harryadel Date: Thu, 20 Jun 2024 19:01:26 +0300 Subject: [PATCH 12/12] Use node version no 14 --- .github/workflows/testsuite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 62b9c6f..8571c2e 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -23,7 +23,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: "12.x" + node-version: "14.x" - name: Install Dependencies run: |