summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2019-08-15 15:30:39 -0700
committerGitHub <noreply@github.com>2019-08-15 15:30:39 -0700
commit0a6944f553af7dd4afa7cb71b7873fa92417d3c3 (patch)
tree664dbb6d132a8e94900eff35dd01d30dab2d9d73
parent36cd434ad16bf6b6c62ae82853c91355114602cd (diff)
Create CI workflow for GitHub actions (#120)
-rw-r--r--.github/workflows/test.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..2057ece
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,40 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ test:
+ name: Test ${{ matrix.compiler }} on ${{ matrix.os }}
+ strategy:
+ matrix:
+ compiler: [gcc, clang]
+ os: [ubuntu-latest, macOS-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v1
+ - name: Compile and run tests
+ run: make && make test
+ env:
+ CC: ${{ matrix.compiler }}
+ acceptance_test:
+ name: Acceptance Tests
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Ruby 2.6
+ uses: actions/setup-ruby@v1
+ with:
+ ruby-version: 2.6.x
+ - name: Install dependencies and compile
+ run: |
+ gem install bundler
+ make
+ cd test/acceptance && bundle install --jobs 4 --retry 3
+ - name: Run acceptance tests
+ run: make acceptance