Skip to content

Commit 9aadd10

Browse files
authored
Merge pull request #147 from lumihq/gitlab-ci
gitlab ci
2 parents 821ac4c + 758537b commit 9aadd10

File tree

4 files changed

+67
-23
lines changed

4 files changed

+67
-23
lines changed

Diff for: .github/workflows/ci.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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/[email protected]
18+
with:
19+
purescript: "0.15.0"
20+
purs-tidy: "latest"
21+
22+
- name: Cache PureScript dependencies
23+
uses: actions/cache@v2
24+
with:
25+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
26+
path: |
27+
.spago
28+
output
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+
- name: Install NPM dependencies
46+
run: npm install
47+
48+
- name: Build the project
49+
run: npm run build
50+
51+
- name: Run tests
52+
run: npm run test
53+
54+
# - name: Check formatting
55+
# run: purs-tidy check src test
56+
57+
- name: Verify Bower & Pulp
58+
run: |
59+
npm install bower [email protected]
60+
npx bower install
61+
npx pulp build -- --censor-lib --strict
62+
if [ -d "test" ]; then
63+
npx pulp test
64+
fi

Diff for: .travis.yml

-15
This file was deleted.

Diff for: package.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@
2424
"react": "^18.1.0"
2525
},
2626
"scripts": {
27-
"deps": "run-s deps:*",
28-
"deps:spago": "spago install",
29-
"deps:pulp": "bower install",
30-
"build": "run-s build:*",
31-
"build:spago": "spago build",
32-
"build:pulp": "pulp build -o output-pulp",
27+
"build": "spago build",
3328
"clean": "rm -rf .spago bower_components output output-pulp node_modules"
3429
}
3530
}

Diff for: packages.dhall

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let upstream =
2-
https://github.com/purescript/package-sets/releases/download/psc-0.15.0-20220510/packages.dhall
3-
sha256:0b0d4db1f2f0acd3b37fa53220644ac6f64cf9b5d0226fd097c0593df563d5be
2+
https://github.com/purescript/package-sets/releases/download/psc-0.15.0-20220513/packages.dhall
3+
sha256:1ed784f37ae6131d99acd542d058d5ce39954ccaacc3adba5cc7cf1549d2bffa
44

55
in upstream

0 commit comments

Comments
 (0)