-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1019 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Test Meteor Perf Package
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
METEOR_VERSION: 3.0.4
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Cache Meteor Installation
id: meteor-cache
uses: actions/cache@v3
with:
path: ~/.meteor
key: ${{ runner.os }}-meteor-${{ env.METEOR_VERSION }}
restore-keys: |
${{ runner.os }}-meteor-
- name: Install Meteor (if not cached)
if: steps.meteor-cache.outputs.cache-hit != 'true'
run: |
npx meteor@${{ env.METEOR_VERSION }}
- name: Export Path
run: |
echo "$HOME/.meteor" >> $GITHUB_PATH
- name: Run Tests
run: |
TEST_CLIENT=0 meteor test-packages ./ --driver-package meteortesting:mocha --no-release-check --once