Skip to content

Merge pull request #106 from home-assistant/updates #113

Merge pull request #106 from home-assistant/updates

Merge pull request #106 from home-assistant/updates #113

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- master
jobs:
functions:
runs-on: ubuntu-latest
env:
working-directory: functions/
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm install
working-directory: ${{ env.working-directory }}
- name: Run tests
run: npm test
working-directory: ${{ env.working-directory }}
- name: Run lint
run: npm run lint
working-directory: ${{ env.working-directory }}
- uses: codecov/codecov-action@v3
name: "Upload Code Coverage"
with:
files: ${{ env.working-directory }}/coverage/lcov.info