-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace TravisCI with Github Actions
- Loading branch information
1 parent
df13474
commit 33733f3
Showing
2 changed files
with
38 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Run tests | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
TEST_ENV: [ubuntu-18.04-llvm-5.0, ubuntu-18.04-llvm-6.0. formatting] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Compose | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y docker-compose | ||
- name: Build and run tests | ||
run: | | ||
docker-compose build ${{ matrix.TEST_ENV }} | ||
docker-compose run ${{ matrix.TEST_ENV }} | ||
if [[ "${{ matrix.TEST_ENV }}" = *llvm-6.0 ]]; then | ||
export VERSION="${{ github.sha }}"; | ||
docker-compose build bindgen; | ||
find . -name target | xargs sudo rm -rf; | ||
scripts/docker-test.sh; | ||
fi | ||
- name: Check formatting | ||
if: matrix.TEST_ENV == 'formatting' | ||
run: | | ||
clang-format --version | ||
scripts/scalafmt --test | ||
scripts/clangfmt --test |
This file was deleted.
Oops, something went wrong.