-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1021 Bytes
/
ci.yml
File metadata and controls
37 lines (31 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build and run
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 9 * * *'
push:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md'
jobs:
build-and-run:
runs-on: ubuntu-latest
permissions:
id-token: write # Needed if using OIDC to get release secrets.
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@f9150cb1d140e9a9271700670baa38991e6fa25c # v2.10.3
with:
ghc-version: 8.10.7
enable-stack: true
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libpcre3-dev
- uses: launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app-v2.0.1
with:
use_server_key: true
role_arn: ${{ vars.AWS_ROLE_ARN }}
command: stack --no-terminal run