Skip to content

Commit

Permalink
ci: add basic ci
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed May 26, 2023
1 parent 029ad99 commit 37eb578
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Continuous Integration

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
validate:
name: Validate
runs-on: ubuntu-20.04

steps:
- name: Check the repository
uses: actions/checkout@v2

- name: Validate
uses: ./.github/actions/validate
with:
node-version: 16.x
uses-libindy: true

test:
name: Test
needs: validate
runs-on: ubuntu-20.04

steps:
- name: Check the repository
uses: actions/checkout@v2
- name: Test
uses: ./.github/actions/test
with:
node-version: 16.x
uses-libindy: true
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "yarn run build",
"dev": "ts-node dev",
"start": "NODE_ENV=production node build/index.js"
"start": "NODE_ENV=production node build/index.js",
"validate": "yarn build && yarn check-format"
},
"devDependencies": {
"@types/express": "^4.17.13",
Expand Down

0 comments on commit 37eb578

Please sign in to comment.