Skip to content

Commit a188803

Browse files
authored
ci: setup github action workflow for testing (#129)
1 parent 4bc31ee commit a188803

File tree

9 files changed

+84
-118
lines changed

9 files changed

+84
-118
lines changed

.circleci/config.yml

Lines changed: 0 additions & 118 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
types: [opened]
9+
10+
jobs:
11+
arduino-default:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Make scripts executable
17+
run: sudo chmod -R +x ./.github/workflows/test/*.sh
18+
- name: Install
19+
run: ./.github/workflows/test/install_arduino.sh
20+
- name: Build
21+
run: ./.github/workflows/test/script_arduino.sh
22+
23+
linux-default:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: Make scripts executable
29+
run: sudo chmod -R +x ./.github/workflows/test/*.sh
30+
- name: Install
31+
run: ./.github/workflows/test/install_platform_io.sh
32+
- name: Build
33+
run: ./.github/workflows/test/script_platform_io.sh
34+
linux-gcc7:
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- uses: actions/checkout@v1
39+
- name: Install dependencies
40+
run: |
41+
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
42+
sudo apt-get update
43+
sudo apt-get -y install g++-7 lcov cmake openssl
44+
- name: Make scripts executable
45+
run: sudo chmod -R +x ./.github/workflows/test/*.sh
46+
- name: Environment variables
47+
run: CC=gcc-7 && CXX=g++-7
48+
- name: Build
49+
run: ./.github/workflows/test/script_desktop.sh
50+
- name: Codecov upload
51+
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
52+
53+
linux-clang-5:
54+
runs-on: ubuntu-latest
55+
56+
steps:
57+
- uses: actions/checkout@v1
58+
- name: Install dependencies
59+
run: |
60+
sudo apt-get update
61+
sudo apt-get -y install clang-5.0 clang-format-5.0 clang-tidy-5.0 lcov cmake openssl
62+
- name: Make scripts executable
63+
run: sudo chmod -R +x ./.github/workflows/test/*.sh
64+
- name: Environment variables
65+
run: CC=clang-5.0 && CXX=clang++-5.0
66+
- name: Build
67+
run: ./.github/workflows/test/script_desktop.sh
68+
- name: Clang Tidy
69+
run: ./.github/workflows/test/clang_tidy.sh
70+
- name: Clang Format
71+
run: ./.github/workflows/test/clang_format.sh
72+
73+
macos:
74+
runs-on: macOS-latest
75+
76+
steps:
77+
- uses: actions/checkout@v1
78+
- run: COMPILER=clang++
79+
- name: Install dependencies
80+
run: brew install cmake lcov
81+
- name: Make scripts executable
82+
run: sudo chmod -R +x ./.github/workflows/test/*.sh
83+
- name: Build
84+
run: ./.github/workflows/test/script_desktop.sh
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)