Mango/.github/workflows/build.yml

32 lines
725 B
YAML
Raw Normal View History

2020-03-19 19:24:06 +00:00
name: Build
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
build:
2020-05-17 14:08:46 +00:00
if: "!contains(github.event.head_commit.message, 'skip ci')"
2020-03-19 19:24:06 +00:00
runs-on: ubuntu-latest
container:
2020-04-07 12:37:23 +00:00
image: crystallang/crystal:0.34.0-alpine
2020-03-19 19:24:06 +00:00
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: apk add --no-cache yarn yaml sqlite-static libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static
2020-03-19 19:24:06 +00:00
- name: Build
2020-05-17 13:57:28 +00:00
run: make static
- name: Linter
run: make check
2020-03-19 19:24:06 +00:00
- name: Run tests
run: make test
2020-05-17 13:57:28 +00:00
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: mango
path: mango