Skip to content

fix(memfault): only pull if connections are active #95

fix(memfault): only pull if connections are active

fix(memfault): only pull if connections are active #95

name: Test and Release
on:
push:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/saga'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Keep npm cache around to speed up installs
uses: actions/cache@v3
with:
path: ~/.npm
key: build-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci --no-audit
- name: Check source code with eslint
run: npx eslint .
- name: Format source code with prettier
run: npx prettier -c ./
- name: Run unit tests
run: npm test
- name: Semantic release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release