Add CI via Actions

This commit is contained in:
Mislav Marohnić 2019-10-24 00:18:28 +02:00 committed by GitHub
parent 0c3967aa32
commit a574a74042
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

19
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: CI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
native_ext: ['', '1']
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Install bats
run: git clone --depth 1 https://github.com/sstephenson/bats.git
- name: Run tests
env:
RBENV_NATIVE_EXT: ${{ matrix.native_ext }}
run: PATH="./bats/bin:$PATH" test/run