diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..5abbe4c --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,30 @@ +name: PlatformIO CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install platformio + - name: Run PlatformIO Build + run: platformio run --environment nrf52840_dk + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install platformio + - name: Run PlatformIO Tests + run: platformio test --environment desktop \ No newline at end of file diff --git a/README.md b/README.md index 6f961b3..acdcc4b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ **Contributions Welcome!** +[![Actions Status](https://github.com/CovidBraceletPrj/CovidBracelet/workflows/main/badge.svg)](https://github.com/CovidBraceletPrj/CovidBracelet/actions) + ## Features * Sends and receives exposure beacons as specified by Google and Apple for Covid Contact Tracing * Rolling, encrypted, anonymous beacons