Skip to content

Commit f99252e

Browse files
Adds github actions instructions (#270)
1 parent 8d1fe38 commit f99252e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,23 @@ $ sudo apt-get install postgresql-VERSION
6161
$ echo "export PATH=$PATH:/usr/lib/postgresql/VERSION/bin/" >> /home/ubuntu/.bashrc
6262
$ stack install tmp-postgres
6363
```
64+
65+
## GitHub Actions
66+
67+
Assuming you are using one of the standard workflow containers, simply add workflow steps which install postgresql as above. For example,
68+
69+
``` yaml
70+
jobs:
71+
build:
72+
runs-on: ubuntu-18.04
73+
steps:
74+
- name: "Install postgresql"
75+
run: "sudo apt-get update && sudo apt-get install postgresql-10"
76+
77+
# ...
78+
79+
- name: "Run test"
80+
run: |
81+
export PATH=$PATH:/usr/lib/postgresql/10/bin
82+
stack test
83+
```

0 commit comments

Comments
 (0)