1- # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
1+ # the test suite runs the tests (headless, server+client) for multiple Meteor releases
42name : Test suite
5-
63on :
74 push :
85 branches :
96 - master
10- - develop
117 pull_request :
128
139jobs :
14- tests :
15- name : tests
10+ # lint:
11+ # name: Javascript standard lint
12+ # runs-on: ubuntu-latest
13+ # steps:
14+ # - name: checkout
15+ # uses: actions/checkout@v3
16+ #
17+ # - name: setup node
18+ # uses: actions/setup-node@v3
19+ # with:
20+ # node-version: 16
21+ #
22+ # - name: cache dependencies
23+ # uses: actions/cache@v3
24+ # with:
25+ # path: ~/.npm
26+ # key: ${{ runner.os }}-node-16-${{ hashFiles('**/package-lock.json') }}
27+ # restore-keys: |
28+ # ${{ runner.os }}-node-16-
29+ #
30+ # - run: cd tests && npm ci && npm run setup && npm run lint
31+
32+ test :
33+ name : Meteor package tests
34+ # needs: [lint]
1635 runs-on : ubuntu-latest
17- # needs: [lintcode,lintstyle,lintdocs] # we could add prior jobs for linting, if desired
36+ strategy :
37+ matrix :
38+ meteorRelease :
39+ - ' 2.3'
40+ - ' 2.14'
41+ # Latest version
1842 steps :
19- - name : checkout
43+ - name : Checkout code
2044 uses : actions/checkout@v3
2145
22- - name : Setup meteor
46+ - name : Install Node.js
47+ uses : actions/setup-node@v3
48+ with :
49+ node-version : 16
50+
51+ - name : Setup meteor ${{ matrix.meteorRelease }}
2352 uses : meteorengineer/setup-meteor@v1
2453 with :
25- meteor-release : ' 2.14 '
54+ meteor-release : ${{ matrix.meteorRelease }}
2655
2756 - name : cache dependencies
2857 uses : actions/cache@v3
2958 with :
3059 path : ~/.npm
31- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
60+ key : ${{ runner.os }}-node-16- ${{ hashFiles('**/package-lock.json') }}
3261 restore-keys : |
33- ${{ runner.os }}-node-
62+ ${{ runner.os }}-node-16-
3463
35- # TODO: run lint
36- - run : |
37- cd tests
38- meteor npm ci
39- meteor npm run setup
40- meteor npm run test
64+ - run : cd tests && npm ci && npm run setup && npm run test
0 commit comments