-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 916 Bytes
/
Copy pathtest.yml
File metadata and controls
41 lines (34 loc) · 916 Bytes
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
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Run Tests (${{ matrix.workspace }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
workspace:
- lib/lambda-at-edge
- lib/cloudfront-functions
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version-file: ${{ matrix.workspace }}/.nvmrc
cache: yarn
cache-dependency-path: ${{ matrix.workspace }}/yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ${{ matrix.workspace }}
- name: Build
run: yarn build
working-directory: ${{ matrix.workspace }}
- name: Run tests
run: yarn test
working-directory: ${{ matrix.workspace }}