Skip to content

Commit 467895f

Browse files
authored
Merge pull request #716 from XeroAPI/PETOSS-527-Create-GitHub-actions-for-validating-PR-in-Node-SDK-repo
PETOSS-529 - Create Github Workflow for Node SDK to Build, Test and Lint
2 parents a88d283 + b5806a3 commit 467895f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

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

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Node Build, Lint and Test
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build-test-lint:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout xero-node repo
12+
uses: actions/checkout@v4
13+
with:
14+
repository: XeroAPI/xero-node
15+
path: xero-node
16+
17+
- name: Set up Node environment
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: 'npm'
22+
cache-dependency-path: '**/package-lock.json'
23+
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
working-directory: xero-node
28+
29+
- name: Run Build
30+
run: npm run build
31+
working-directory: xero-node
32+
33+
- name: Run Tests
34+
run: npm run test
35+
working-directory: xero-node

0 commit comments

Comments
 (0)