Skip to content

Commit

Permalink
replace travis with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zfletch committed Jul 13, 2020
1 parent d265ad8 commit 1671f32
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
File renamed without changes.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'

- name: Update packages
run: sudo apt-get update -qq

- name: Install dependencies
run: sudo apt-get install -qq -y build-essential flex-old

- name: Make
run: bash -c "cd src/ && CFLAGS='-std=gnu89' make && make install"

- name: Run tests
run: ruby test/test.rb
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 2.7.1
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

0 comments on commit 1671f32

Please sign in to comment.