Skip to content

Commit 3f4fa9e

Browse files
authored
Merge pull request #5 from guardrails-ai/workflow
build on pr and push
2 parents 0525b78 + f9acccf commit 3f4fa9e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/build-sdk.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build SDK
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: 14
17+
18+
- name: Execute merge.sh
19+
run: |
20+
chmod +x merge.sh # Make the script executable
21+
./merge.sh
22+
continue-on-error: false # Stop the workflow if merge.sh returns a non-zero exit code
23+
24+
- name: Execute build-sdk.sh
25+
run: |
26+
chmod +x build-sdk.sh # Make the script executable
27+
./build-sdk.sh
28+
continue-on-error: false # Stop the workflow if build-sdk.sh returns a non-zero exit code
29+
30+
- name: Check for errors
31+
run: exit 0 # This step is here to explicitly check the exit code of the previous step

0 commit comments

Comments
 (0)