Skip to content

Commit

Permalink
Testing workflow
Browse files Browse the repository at this point in the history
* Feat: Testing workflow

* Fix: Build output for packaging
  • Loading branch information
thedist authored Apr 3, 2024
1 parent 6672e7b commit 9346b4e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/node.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Node CI

on:
push:
pull_request:

jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 15

strategy:
fail-fast: false
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Prepare Environment
run: |
yarn install
env:
CI: true
- name: Test jest
run: |
yarn test
env:
CI: true
- name: Test tsc
run: |
yarn build
env:
CI: true
- name: Test package
run: |
yarn companion-module-build
env:
CI: true
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"build": "rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.build.json",
"build:watch": "tsc -p tsconfig.build.json --watch",
"build:test": "tsc -p tsconfig.build.json --noEmit",
"lint": "eslint . --ext .ts --fix",
"lint:test": "eslint . --ext .ts",
"test": "jest"
},
"repository": {
Expand Down

0 comments on commit 9346b4e

Please sign in to comment.