-
Notifications
You must be signed in to change notification settings - Fork 71
48 lines (47 loc) · 1.39 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
41
42
43
44
45
46
47
48
name: example-subfolders
on: [push, pull_request]
jobs:
separate-actions:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macOS-latest]
name: Test on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# 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: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macOS-latest]
name: Test on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- 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