forked from bahmutov/npm-install
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.14 KB
/
example-subfolders.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
name: example-subfolders
on: [push]
jobs:
separate-actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# typically we would use a SHA or branch name
# of an action like
# - uses: bahmutov/npm-install@v1
# but for internal testing, let's use the local action
- uses: ./
with:
# server use NPM package lock file
working-directory: examples/subfolders/server
- uses: ./
with:
# client uses yarn lock
working-directory: examples/subfolders/client
# run tests
- run: npm t
working-directory: examples/subfolders/server
- run: npm t
working-directory: examples/subfolders/client
separate-lines:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./
with:
# specify a directory per line
working-directory: |
examples/subfolders/server
examples/subfolders/client
# run tests
- run: npm t
working-directory: examples/subfolders/server
- run: npm t
working-directory: examples/subfolders/client