forked from chanzuckerberg/fogg
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 911 Bytes
/
build.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
on:
pull_request:
branches:
- feat-multi-module-components
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run tests
run: make test-ci
test-cdktf:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
# pnpm required for setup-node cache support
# ref: https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
- name: Setup pnpm from .packageManager
with:
run_install: false
uses: pnpm/action-setup@v4
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "pnpm"
- name: Run pnpm test
run: |
pnpm install --frozen-lockfile
pnpm run test