-
-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (31 loc) · 763 Bytes
/
build-and-test.yml
File metadata and controls
36 lines (31 loc) · 763 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
name: build-and-test
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
check-dist:
name: "check-dist matches source"
uses: cloudposse/.github/.github/workflows/shared-ci-typescript-app-check-dist.yml@main
with:
node-version: 24.x
unit-test:
name: "unit tests"
runs-on: ubuntu-latest
needs: check-dist
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: yarn
- name: install dependencies
run: yarn add ci
- name: run unit tests
run: yarn test