Skip to content

Commit 6bb78fa

Browse files
authored
[#43]: Revamp the CI system (#48)
1 parent dafa89e commit 6bb78fa

20 files changed

Lines changed: 168 additions & 99 deletions

.ci-scripts

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/scan-code.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on: [push]
2+
name: scan-code
3+
jobs:
4+
scan-hlint:
5+
name: hlint
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: 'Setup hlint'
12+
uses: rwe/actions-hlint-setup@v1
13+
with:
14+
version: '3.1.6'
15+
16+
- name: 'Run hlint and annotate results'
17+
uses: rwe/actions-hlint-run@v2
18+
with:
19+
path: '["src/", "spec/", "examples/"]'
20+
fail-on: warning
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on: [push]
2+
name: test-macos-latest
3+
jobs:
4+
test-package:
5+
name: Test
6+
runs-on: macOS-latest
7+
8+
strategy:
9+
matrix:
10+
stack-yaml:
11+
- stack.yaml
12+
- stack-examples.yaml
13+
stack-version:
14+
- latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- uses: haskell/actions/setup@v1
20+
with:
21+
enable-stack: true
22+
stack-no-global: true
23+
stack-version: ${{ matrix.stack-version }}
24+
25+
- env:
26+
STACK_YAML: ${{matrix.stack-yaml }}
27+
run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on: [push]
2+
name: test-ubuntu-latest
3+
jobs:
4+
test-package:
5+
name: Test
6+
runs-on: ubuntu-latest # or macOS-latest, or windows-latest
7+
8+
strategy:
9+
matrix:
10+
stack-yaml:
11+
- stack.yaml
12+
- stack-nightly.yaml
13+
- stack-examples.yaml
14+
- stack-ghc-7.8.yaml
15+
- stack-ghc-7.10.yaml
16+
- stack-ghc-8.0.yaml
17+
- stack-ghc-8.2.yaml
18+
- stack-ghc-8.4.yaml
19+
- stack-ghc-8.6.yaml
20+
- stack-ghc-8.8.yaml
21+
- stack-ghc-8.10.yaml
22+
stack-version:
23+
- latest
24+
25+
exclude:
26+
- stack-yaml: stack-ghc-7.8.yaml
27+
stack-version: latest
28+
include:
29+
# ghc-7.8 resolver requires older stack
30+
- stack-yaml: stack-ghc-7.8.yaml
31+
stack-version: 1.9
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
36+
- uses: haskell/actions/setup@v1
37+
with:
38+
enable-stack: true
39+
stack-no-global: true
40+
stack-version: ${{ matrix.stack-version }}
41+
42+
- env:
43+
STACK_YAML: ${{matrix.stack-yaml }}
44+
run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on: [push]
2+
name: test-windows-latest
3+
jobs:
4+
test-package:
5+
name: Test
6+
runs-on: windows-latest
7+
8+
strategy:
9+
matrix:
10+
stack-yaml:
11+
- stack.yaml
12+
- stack-examples.yaml
13+
stack-version:
14+
- latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- uses: haskell/actions/setup@v1
20+
with:
21+
enable-stack: true
22+
stack-no-global: true
23+
stack-version: ${{ matrix.stack-version }}
24+
25+
- env:
26+
STACK_YAML: ${{matrix.stack-yaml }}
27+
run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
github-webhooks
33
---------------
44

5+
![GitHub release (latest by date)](https://img.shields.io/github/v/release/cuedo/github-webhooks?style=flat-square)
56
[![Hackage](https://img.shields.io/hackage/v/github-webhooks.svg?style=flat-square)](https://hackage.haskell.org/package/github-webhooks)
67
[![License](https://img.shields.io/github/license/onrock-eng/github-webhooks.svg?style=flat-square)](#license)
78

8-
| | `release` | `master` |
9+
| | `release` | `develop` |
910
|-------------|---------|----------|
10-
| Linux & OSX | [![travis-linux](https://img.shields.io/travis/onrock-eng/github-webhooks/release.svg?style=flat-square)](https://travis-ci.org/onrock-eng/github-webhooks) | [![travis-linux](https://img.shields.io/travis/onrock-eng/github-webhooks.svg?style=flat-square)](https://travis-ci.org/onrock-eng/github-webhooks) |
11-
| Windows | [![appveyor-windows](https://img.shields.io/appveyor/ci/OnRockEngineering/github-webhooks/release.svg?style=flat-square)](https://ci.appveyor.com/project/OnRockEngineering/github-webhooks) | [![appveyor-windows](https://img.shields.io/appveyor/ci/OnRockEngineering/github-webhooks/master.svg?style=flat-square)](https://ci.appveyor.com/project/OnRockEngineering/github-webhooks) |
11+
| Ubuntu | ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/cuedo/github-webhooks/test-ubuntu-latest/release?style=flat-square) | ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/cuedo/github-webhooks/test-ubuntu-latest/develop?style=flat-square) |
12+
| Mac OS | ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/cuedo/github-webhooks/test-macos-latest/release?style=flat-square) | ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/cuedo/github-webhooks/test-macos-latest/develop?style=flat-square) |
13+
| Windows | ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/cuedo/github-webhooks/test-windows-latest/release?style=flat-square) |![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/cuedo/github-webhooks/test-windows-latest/develop?style=flat-square) |
1214

1315
Complete Haskell types and instances for decoding GitHub API [Webhook] payloads.
1416

appveyor.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/scotty/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ github-webhooks-scotty-example
33

44
1. From the **root directory of this repository**, run:
55
```
6-
$ stack build github-webhooks-scotty-example
6+
$ stack build github-webhooks-scotty-example --stack-yaml "stack-examples.yaml"
77
```
88

99
2. Then to start the server:

0 commit comments

Comments
 (0)