Skip to content

Commit 37eb578

Browse files
committed
ci: add basic ci
Signed-off-by: Timo Glastra <timo@animo.id>
1 parent 029ad99 commit 37eb578

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
validate:
13+
name: Validate
14+
runs-on: ubuntu-20.04
15+
16+
steps:
17+
- name: Check the repository
18+
uses: actions/checkout@v2
19+
20+
- name: Validate
21+
uses: ./.github/actions/validate
22+
with:
23+
node-version: 16.x
24+
uses-libindy: true
25+
26+
test:
27+
name: Test
28+
needs: validate
29+
runs-on: ubuntu-20.04
30+
31+
steps:
32+
- name: Check the repository
33+
uses: actions/checkout@v2
34+
- name: Test
35+
uses: ./.github/actions/test
36+
with:
37+
node-version: 16.x
38+
uses-libindy: true

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"compile": "tsc -p tsconfig.build.json",
2424
"prepublishOnly": "yarn run build",
2525
"dev": "ts-node dev",
26-
"start": "NODE_ENV=production node build/index.js"
26+
"start": "NODE_ENV=production node build/index.js",
27+
"validate": "yarn build && yarn check-format"
2728
},
2829
"devDependencies": {
2930
"@types/express": "^4.17.13",

0 commit comments

Comments
 (0)