Skip to content

Commit 228c735

Browse files
committed
ci: add PR workflow, remove unused workflow
1 parent b50167c commit 228c735

File tree

2 files changed

+35
-28
lines changed

2 files changed

+35
-28
lines changed

.github/workflows/build-test-ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them,
2+
# build the source code and run tests. It was created by using the following workflow
3+
# as a template.
4+
#
5+
# https://pnpm.io/next/continuous-integration#github-actions
6+
7+
name: Build and test TypeScript SDK CI
8+
9+
on:
10+
push:
11+
branches: [main]
12+
pull_request:
13+
branches: [main]
14+
15+
jobs:
16+
main:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
node-version: [18.x]
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: pnpm/action-setup@v2
24+
with:
25+
version: 8
26+
- name: Setting up Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: 'pnpm'
31+
- name: Enabling pre-post scripts
32+
run: pnpm config set enable-pre-post-scripts true
33+
- run: pnpm install
34+
- run: pnpm build
35+
- run: pnpm test

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)