fix: ci #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test suite | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
jobs: | |
lintcode: | |
name: Javascript lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: cd test-proxy && npm ci | |
- run: cd test-proxy && npm run lint:code | |
lintdocs: | |
name: documentation lint | |
runs-on: ubuntu-latest | |
needs: [lintcode] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: cd test-proxy && npm ci | |
- run: cd test-proxy && npm run lint:markdown | |
tests: | |
name: Meteor ${{ matrix.meteor }} tests | |
runs-on: ubuntu-latest | |
needs: [lintcode,lintdocs] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Checkout leaonline:corelib repo | |
uses: actions/checkout@v3 | |
with: | |
repository: leaonline/corelib | |
path: github/corelib | |
- name: Setup meteor | |
uses: meteorengineer/setup-meteor@v1 | |
with: | |
meteor-release: '1.11.1' | |
- name: cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: cd test-proxy && npm run ci |