From 5c479d51ab67672e6b69d88326929e0fced9a922 Mon Sep 17 00:00:00 2001 From: Patrick Rathje Date: Tue, 18 Aug 2020 23:16:02 +0200 Subject: [PATCH] Add main Github Actions workflow --- .github/workflows/main.yaml | 30 ++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/main.yaml 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