Skip to content

Commit

Permalink
ci: setup github action workflow for testing (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Sep 23, 2019
1 parent 4bc31ee commit a188803
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 118 deletions.
118 changes: 0 additions & 118 deletions .circleci/config.yml

This file was deleted.

84 changes: 84 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,84 @@
name: Test

on:
push:
branches:
- "**"
pull_request:
types: [opened]

jobs:
arduino-default:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Make scripts executable
run: sudo chmod -R +x ./.github/workflows/test/*.sh
- name: Install
run: ./.github/workflows/test/install_arduino.sh
- name: Build
run: ./.github/workflows/test/script_arduino.sh

linux-default:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Make scripts executable
run: sudo chmod -R +x ./.github/workflows/test/*.sh
- name: Install
run: ./.github/workflows/test/install_platform_io.sh
- name: Build
run: ./.github/workflows/test/script_platform_io.sh
linux-gcc7:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get -y install g++-7 lcov cmake openssl
- name: Make scripts executable
run: sudo chmod -R +x ./.github/workflows/test/*.sh
- name: Environment variables
run: CC=gcc-7 && CXX=g++-7
- name: Build
run: ./.github/workflows/test/script_desktop.sh
- name: Codecov upload
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}

linux-clang-5:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install clang-5.0 clang-format-5.0 clang-tidy-5.0 lcov cmake openssl
- name: Make scripts executable
run: sudo chmod -R +x ./.github/workflows/test/*.sh
- name: Environment variables
run: CC=clang-5.0 && CXX=clang++-5.0
- name: Build
run: ./.github/workflows/test/script_desktop.sh
- name: Clang Tidy
run: ./.github/workflows/test/clang_tidy.sh
- name: Clang Format
run: ./.github/workflows/test/clang_format.sh

macos:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v1
- run: COMPILER=clang++
- name: Install dependencies
run: brew install cmake lcov
- name: Make scripts executable
run: sudo chmod -R +x ./.github/workflows/test/*.sh
- name: Build
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 comments on commit a188803

Please sign in to comment.