Skip to content

Commit dad912c

Browse files
authored
feat: add build-and-test github workflow (astahmer#76)
nice thank you!
1 parent a718a33 commit dad912c

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.changeset/new-dodos-knock.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"typed-openapi": minor
3+
---
4+
5+
feat: add build-and-test github workflow

.github/workflows/build-and-test.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-test:
7+
name: Build and Test
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Setup pnpm
13+
uses: pnpm/action-setup@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version-file: '.nvmrc'
19+
cache: 'pnpm'
20+
21+
- name: Install dependencies
22+
run: pnpm install --frozen-lockfile
23+
24+
- name: Build
25+
run: pnpm build
26+
27+
- name: Test
28+
run: pnpm test

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version-file: ".nvmrc"
22+
cache: 'pnpm'
2223

2324
- name: Setup pnpm
2425
uses: pnpm/action-setup@v4

0 commit comments

Comments
 (0)