Skip to content

Commit a6a2ccb

Browse files
authored
Merge pull request #6 from lumihq/github-actions
Add github actions CI
2 parents 831893f + aee3a78 commit a6a2ccb

File tree

2 files changed

+53
-15
lines changed

2 files changed

+53
-15
lines changed

.github/workflows/ci.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up PureScript toolchain
17+
uses: purescript-contrib/setup-purescript@main
18+
with:
19+
purescript: "0.14.0"
20+
21+
- name: Cache PureScript dependencies
22+
uses: actions/cache@v2
23+
with:
24+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
25+
path: |
26+
.spago
27+
output
28+
29+
- name: Set up Node toolchain
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: "14.x"
33+
34+
- name: Cache NPM dependencies
35+
uses: actions/cache@v2
36+
env:
37+
cache-name: cache-node-modules
38+
with:
39+
path: ~/.npm
40+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
41+
restore-keys: |
42+
${{ runner.os }}-build-${{ env.cache-name }}-
43+
${{ runner.os }}-build-
44+
${{ runner.os }}-
45+
46+
- name: Install NPM dependencies
47+
run: npm install
48+
49+
- name: Install spago deps
50+
run: npm run deps
51+
52+
- name: Build the project
53+
run: npm run build

.travis.yml

-15
This file was deleted.

0 commit comments

Comments
 (0)