2021-01-03 05:15:23 +00:00
|
|
|
---
|
2021-01-02 21:53:00 +00:00
|
|
|
name: Build
|
|
|
|
|
2021-01-03 05:15:23 +00:00
|
|
|
"on":
|
2021-01-02 21:53:00 +00:00
|
|
|
push:
|
2021-01-03 05:15:23 +00:00
|
|
|
branches: ["master"]
|
2021-01-02 21:53:00 +00:00
|
|
|
pull_request:
|
2021-01-03 05:15:23 +00:00
|
|
|
branches: ["master"]
|
2021-01-02 21:53:00 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
container:
|
|
|
|
image: crystallang/crystal
|
|
|
|
|
|
|
|
steps:
|
2021-01-03 05:15:23 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-01-03 05:18:13 +00:00
|
|
|
- name: Install libncurses5
|
2021-01-03 05:21:49 +00:00
|
|
|
run: apt-get update && apt-get install -y libncurses5-dev
|
2021-01-03 05:18:13 +00:00
|
|
|
|
2021-01-03 05:15:23 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: shards install
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: make test
|
|
|
|
|
|
|
|
- name: Run build
|
|
|
|
run: make build
|