Skip to content

Commit df3461b

Browse files
author
Serhii Khoma srghma.github.io/how-life-was-created
authored
Update to spago-next (#20)
* feat: update to spago@next locally tests dont work, but on ci - work * feat: remove old spago.dhall * feat: tests -> add --pedantic-packages * feat: ditch setup-purescript here and install purs and spago via npm
1 parent 1fc2138 commit df3461b

File tree

7 files changed

+44
-45
lines changed

7 files changed

+44
-45
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,18 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111

12-
- name: Set up PureScript toolchain
13-
uses: purescript-contrib/setup-purescript@main
14-
with:
15-
purescript: "unstable"
16-
1712
- name: Cache PureScript dependencies
1813
uses: actions/cache@v2
1914
with:
20-
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
15+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.yaml') }}
2116
path: |
2217
.spago
2318
output
2419
2520
- name: Set up Node toolchain
2621
uses: actions/setup-node@v2
2722
with:
28-
node-version: "14.x"
23+
node-version: "20.x"
2924

3025
- name: Cache NPM dependencies
3126
uses: actions/cache@v2
@@ -39,6 +34,9 @@ jobs:
3934
${{ runner.os }}-build-
4035
${{ runner.os }}-
4136
37+
- name: Install NPM dependencies
38+
run: npm install -g spago@next purescript@latest
39+
4240
- name: Install NPM dependencies
4341
run: npm install
4442

@@ -55,6 +53,6 @@ jobs:
5553

5654
- name: Verify Bower & Pulp
5755
run: |
58-
npm install bower [email protected].0-0
56+
npm install bower [email protected].2
5957
npx bower install
60-
npx pulp build -- --censor-lib --strict
58+
npx pulp build

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ bower_components
1111
node_modules
1212
package-lock.json
1313
*.lock
14+
15+
test1.txt
16+
test.txt
17+
dist/

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"private": true,
33
"scripts": {
4-
"build": "eslint src && spago build --purs-args '--censor-lib --strict'",
4+
"build": "eslint src && spago build --strict --censor-stats --pedantic-packages",
55
"test": "spago test --no-install"
66
},
77
"devDependencies": {
8-
"@vercel/ncc": "^0.27.0",
9-
"eslint": "^7.22.0"
8+
"@vercel/ncc": "^0.38.1",
9+
"eslint": "^8.57.0"
1010
},
1111
"dependencies": {
12-
"@actions/cache": "^1.0.6",
13-
"@actions/core": "^1.2.6",
14-
"@actions/exec": "^1.0.4",
15-
"@actions/io": "^1.0.2",
16-
"@actions/tool-cache": "^1.6.1"
12+
"@actions/cache": "^3.2.4",
13+
"@actions/core": "^1.10.1",
14+
"@actions/exec": "^1.1.1",
15+
"@actions/io": "^1.1.3",
16+
"@actions/tool-cache": "^2.0.1"
1717
}
1818
}

packages.dhall

Lines changed: 0 additions & 4 deletions
This file was deleted.

spago.dhall

Lines changed: 0 additions & 23 deletions
This file was deleted.

spago.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package:
2+
name: github-actions-toolkit
3+
dependencies:
4+
- aff
5+
- aff-promise
6+
- control
7+
- effect
8+
- exceptions
9+
- foreign-object
10+
- maybe
11+
- node-buffer
12+
- node-path
13+
- node-streams
14+
- nullable
15+
- prelude
16+
- transformers
17+
test:
18+
main: Test.Main
19+
dependencies:
20+
- either
21+
workspace:
22+
package_set:
23+
registry: 50.4.0
24+
extra_packages: {}

test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Test'
22
description: 'Test out bindings in this library'
33
runs:
4-
using: 'node12'
4+
using: 'node20'
55
main: '../dist/index.js'
66
inputs:
77
testinput:

0 commit comments

Comments
 (0)