Skip to content

Add github workflow for ci testing #1

Add github workflow for ci testing

Add github workflow for ci testing #1

name: Devcontainer cargo test
on:
push:
branches:
- main
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build devcontainer image
run: |
docker build \
--file .devcontainer/Dockerfile \
--platform linux/amd64 \
--tag nrf-rpc-dev \
.
- name: Run cargo test inside container
run: |
docker run --rm \
-v "$GITHUB_WORKSPACE:/workspace" \
-w /workspace \
nrf-rpc-dev \
bash -lc "cargo test"