Skip to content

Commit 647ef08

Browse files
committed
Add a workflows file
1 parent 14b2e4f commit 647ef08

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: "lts/*"
18+
19+
- name: Setup PureScript dependencies
20+
run: npm i --global [email protected] spago@next purs-tidy
21+
22+
- name: Chech formatting
23+
run: purs-tidy check src/
24+
25+
- name: Build source
26+
run: |
27+
spago build
28+
spago bundle --bundle-type module --bundler-args '--external:gi://*'
29+
30+
- name: Cache PureScript dependencies
31+
uses: actions/cache@v2
32+
with:
33+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.yaml') }}
34+
path: |
35+
.spago
36+
output
37+

0 commit comments

Comments
 (0)