noozoid/.github/workflows/crystal.yml

31 lines
498 B
YAML
Raw Normal View History

2021-01-03 05:15:23 +00:00
---
2021-01-03 05:51:42 +00:00
name: build
2021-01-02 21:53:00 +00:00
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
- name: Install libncurses5
2021-01-03 05:50:01 +00:00
run: apt-get update && apt-get install -y libncursesw5-dev
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