Skip to content

Commit

Permalink
+ GH actions: main workflow - run unit tests
Browse files Browse the repository at this point in the history
* README.md
  • Loading branch information
shellcatt committed Nov 23, 2024
1 parent e5b335d commit 507f41e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Unit Tests

on:
push:
branches:
- dev
paths:
- 'package.json'
- 'deno.json'
- 'jsr.json'
- '**/*.js'
- '**/*.mjs'
- '.github/workflows/**'

pull_request:
branches:
- main
paths:
- 'package.json'
- 'deno.json'
- 'jsr.json'
- '**/*.js'
- '**/*.mjs'

env:
HA_EMAIL: ${{secrets.HA_EMAIL}}
HA_PASS: ${{secrets.HA_PASS}}

jobs:
test:
name: Run Mocha Tests
runs-on: ubuntu-latest

container:
image: denoland/deno:2.0.0

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Install Dependencies
run: deno install

- name: Run Tests
run: deno task test

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ node cli control <ID|Name> --rgb 90,30,115 # RGB something

- ✅ port and optimize [tuya-smartlife-api-node](https://github.com/shellcatt/tuya-smartlife-api-node)
- ✅ port unit tests
- ❌ port pipelines

- ... [**Original Roadmap**](https://github.com/shellcatt/tuya-smartlife-api-node#roadmap)
- ✅ port pipelines


## Credits ![License](https://img.shields.io/badge/license-MIT-73901d)
Expand Down

0 comments on commit 507f41e

Please sign in to comment.