Skip to content

Commit

Permalink
Update Github action to include full test
Browse files Browse the repository at this point in the history
  • Loading branch information
salbahra committed Jul 24, 2023
1 parent 3cb87da commit 2df11e9
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,32 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 18.x

- name: Build
- name: Install dependencies
run: |
npm install
grunt
- name: Start demo firmware
run: |
grunt shell:startDemo
- name: Run test steps
run: |
grunt test
- name: Stop demo firmware
run: |
grunt shell:stopDemo
- name: Aggregate and post results
run: |
lcov-result-merger './coverage/results-*.lcov' './coverage/results.lcov'
cat coverage/results.lcov | codecov.io.js
cat coverage/results.lcov | coveralls

0 comments on commit 2df11e9

Please sign in to comment.