forked from nullstack/nullstack
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.37 KB
/
pr-tests.yml
File metadata and controls
54 lines (44 loc) · 1.37 KB
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
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Nullstack Tests
on:
pull_request:
branches: [ master, next ]
jobs:
build:
runs-on: ubuntu-latest
container: lironavon/docker-puppeteer-container:14.16.0
env:
CI: true
strategy:
matrix:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 7
# cache the dependencies from any node_modules directory
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
**/node_modules
**/pnpm-lock.yaml
key: node_modules-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install and link main deps
run: |
pnpm install
pnpm link --global
- name: Install deps at tests folder
working-directory: ./tests
run: |
pnpm link nullstack --global
pnpm install
- name: Run tests
working-directory: ./tests
run: pnpm test