forked from wojtkowiak/meteor-desktop
-
-
Notifications
You must be signed in to change notification settings - Fork 12
69 lines (65 loc) · 1.76 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build and Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
id: files-cache
with:
path: |
node_modules
dist/
~/.meteor
/tmp/tests/.__tmp_int
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install/Retrieve Meteor
if: steps.files-cache.outputs.cache-hit != 'true'
run: curl https://install.meteor.com/?release=2.6 | /bin/sh
- name: Install NPM Dependencies
if: steps.files-cache.outputs.cache-hit != 'true'
run: meteor npm ci
test:
needs: build
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Cache dependencies
uses: actions/cache@v3
id: files-cache
with:
path: |
node_modules
dist/
~/.meteor
/tmp/tests/.__tmp_int
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Unit Tests
run: ~/.meteor/meteor npm run test
test-integration:
needs: build
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Cache dependencies
uses: actions/cache@v3
id: files-cache
with:
path: |
node_modules
dist/
~/.meteor
/tmp/tests/.__tmp_int
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- run: ~/.meteor/meteor npm run prepare-integration-tests
- run: ~/.meteor/meteor npm run test-integration