Skip to content

Commit

Permalink
Update to spago-next (#20)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
srghma authored Apr 2, 2024
1 parent 1fc2138 commit df3461b
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 45 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"

- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.yaml') }}
path: |
.spago
output
- name: Set up Node toolchain
uses: actions/setup-node@v2
with:
node-version: "14.x"
node-version: "20.x"

- name: Cache NPM dependencies
uses: actions/cache@v2
Expand All @@ -39,6 +34,9 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install NPM dependencies
run: npm install -g spago@next purescript@latest

- name: Install NPM dependencies
run: npm install

Expand All @@ -55,6 +53,6 @@ jobs:

- name: Verify Bower & Pulp
run: |
npm install bower [email protected].0-0
npm install bower [email protected].2
npx bower install
npx pulp build -- --censor-lib --strict
npx pulp build
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ bower_components
node_modules
package-lock.json
*.lock

test1.txt
test.txt
dist/
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"private": true,
"scripts": {
"build": "eslint src && spago build --purs-args '--censor-lib --strict'",
"build": "eslint src && spago build --strict --censor-stats --pedantic-packages",
"test": "spago test --no-install"
},
"devDependencies": {
"@vercel/ncc": "^0.27.0",
"eslint": "^7.22.0"
"@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0"
},
"dependencies": {
"@actions/cache": "^1.0.6",
"@actions/core": "^1.2.6",
"@actions/exec": "^1.0.4",
"@actions/io": "^1.0.2",
"@actions/tool-cache": "^1.6.1"
"@actions/cache": "^3.2.4",
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"@actions/io": "^1.1.3",
"@actions/tool-cache": "^2.0.1"
}
}
4 changes: 0 additions & 4 deletions packages.dhall

This file was deleted.

23 changes: 0 additions & 23 deletions spago.dhall

This file was deleted.

24 changes: 24 additions & 0 deletions spago.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package:
name: github-actions-toolkit
dependencies:
- aff
- aff-promise
- control
- effect
- exceptions
- foreign-object
- maybe
- node-buffer
- node-path
- node-streams
- nullable
- prelude
- transformers
test:
main: Test.Main
dependencies:
- either
workspace:
package_set:
registry: 50.4.0
extra_packages: {}
2 changes: 1 addition & 1 deletion test/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Test'
description: 'Test out bindings in this library'
runs:
using: 'node12'
using: 'node20'
main: '../dist/index.js'
inputs:
testinput:
Expand Down

0 comments on commit df3461b

Please sign in to comment.