on master help sign in
set up ci
commite9dd65566383a09a67fd694786b2aea88979447e authorMark Wotton <mwotton@gmail.com> dateSat 6 Jun 2020, 11:04 (6 years ago) parent81194e2
2 files changed+48
.github/workflows/ci.yml+46 README.md+2
.github/workflows/ci.ymlnew file+46
@@ -0,0 +1,46 @@
1+name: CI
2+
3+# Trigger the workflow on push or pull request, but only for the master branch
4+on:
5+ pull_request:
6+ push:
7+ branches: [master]
8+
9+jobs:
10+ stack:
11+ name: ${{ matrix.os }}-${{ matrix.ghc }}-stack
12+ runs-on: ${{ matrix.os }}
13+ strategy:
14+ matrix:
15+ stack: ["2.1.3"]
16+ ghc: ["8.8.3"]
17+ os: [ubuntu-latest, macOS-latest]
18+ steps:
19+ - uses: actions/checkout@v2
20+ if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
21+
22+ - name: install postgresql on ubuntu
23+ if: ${{ matrix.os == 'ubuntu-latest' }}
24+ run: |
25+ sudo apt install postgresql-10
26+
27+ - uses: actions/setup-haskell@v1.1
28+ name: Setup Haskell Stack
29+ with:
30+ ghc-version: ${{ matrix.ghc }}
31+ stack-version: ${{ matrix.stack }}
32+ enable-stack: true
33+
34+ - uses: actions/cache@v1
35+ name: Cache ~/.stack
36+ with:
37+ path: ~/.stack
38+ key: ${{ runner.os }}-${{ matrix.ghc }}-stack
39+
40+ - name: Ensure rebuild
41+ run : |
42+ touch squealgen.sql
43+
44+ - name: Test
45+ run: |
46+ PATH=/usr/lib/postgresql/10/bin:$PATH make test
README.md+2
@@ -1 +1,3 @@
11# roboservant
2+
3+![CI](https://github.com/mwotton/roboservant/workflows/CI/badge.svg)