Skip to content

Commit

Permalink
Merge pull request #3 from RV-Argonaut/add-github-ci
Browse files Browse the repository at this point in the history
ci: add github ci actions to build and test
  • Loading branch information
ferm10n authored Mar 28, 2023
2 parents 219b22a + de17d19 commit eeb838d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --immutable
- run: yarn build
- run: yarn test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"author": "SmartTech",
"license": "GPL-3.0-or-later",
"devDependencies": {
"@types/node": "^16",
"chai": "^4.2.0",
"jsdoc": "^3.6.6",
"mocha": "^8.2.0",
Expand Down
29 changes: 29 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,13 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:^16":
version: 16.18.21
resolution: "@types/node@npm:16.18.21"
checksum: 152e7976f30b4e599d37e5a92a0c62dbe0751a63dab1aef44a0c2db940fa6f79a23be9783886b6afe34aa20485679c6bdd7b787b304fdbb05e72326c95d2b255
languageName: node
linkType: hard

"@ungap/promise-all-settled@npm:1.1.2":
version: 1.1.2
resolution: "@ungap/promise-all-settled@npm:1.1.2"
Expand Down Expand Up @@ -1946,10 +1953,12 @@ __metadata:
version: 0.0.0-use.local
resolution: "node-open-protocol@workspace:."
dependencies:
"@types/node": ^16
chai: ^4.2.0
jsdoc: ^3.6.6
mocha: ^8.2.0
nyc: ^15.1.0
typescript: ^4.7.2
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -2586,6 +2595,26 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^4.7.2":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: ee000bc26848147ad423b581bd250075662a354d84f0e06eb76d3b892328d8d4440b7487b5a83e851b12b255f55d71835b008a66cbf8f255a11e4400159237db
languageName: node
linkType: hard

"typescript@patch:typescript@^4.7.2#~builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=7ad353"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 2eee5c37cad4390385db5db5a8e81470e42e8f1401b0358d7390095d6f681b410f2c4a0c496c6ff9ebd775423c7785cdace7bcdad76c7bee283df3d9718c0f20
languageName: node
linkType: hard

"uc.micro@npm:^1.0.1, uc.micro@npm:^1.0.5":
version: 1.0.6
resolution: "uc.micro@npm:1.0.6"
Expand Down

0 comments on commit eeb838d

Please sign in to comment.