Skip to content

Feature: Introduce MQTT Client SDK #114

Feature: Introduce MQTT Client SDK

Feature: Introduce MQTT Client SDK #114

Workflow file for this run

name: Status Checks
on:
pull_request:
branches:
- main
jobs:
npm:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm clean-install
prettier:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm clean-install
- run: npx prettier --check .
dotnet:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
cache: true
cache-dependency-path: Mortein*/packages.lock.json
- run: dotnet restore
- run: dotnet tool restore
dotnet-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
cache: true
cache-dependency-path: Mortein*/packages.lock.json
- run: dotnet restore
- run: dotnet tool restore
- run: dotnet build -warnaserror
dotnet-format:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
cache: true
cache-dependency-path: Mortein*/packages.lock.json
- run: dotnet restore
- run: dotnet tool restore
- run: dotnet format --verify-no-changes
dotnet-test:
environment: testing
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Create .env file from `testing` Environment
run: |
echo '${{ toJson(secrets) }}' \
| jq -r 'to_entries[] | "\(.key)=\(.value)"' > .devcontainer/.env
echo '${{ toJson(vars) }}' \
| jq -r 'to_entries[] | "\(.key)=\(.value)"' >> .devcontainer/.env
echo 'GITHUB_ACTIONS=true' >> .devcontainer/.env
- name: .NET Tests
uses: devcontainers/[email protected]
with:
runCmd: dotnet test