Skip to content

Commit

Permalink
complete upgrade to new Spago@next
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbecich committed Feb 25, 2024
1 parent 83a204d commit 442924f
Show file tree
Hide file tree
Showing 17 changed files with 13,737 additions and 326 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,15 @@ jobs:
dist-newstyle
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local

- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with: # https://github.com/purescript-contrib/setup-purescript#specify-versions
purescript: "0.15.13"
# - name: Set up a PureScript toolchain
# uses: purescript-contrib/setup-purescript@main
# with: # https://github.com/purescript-contrib/setup-purescript#specify-versions
# spago: "latest"
# purescript: "0.15.13"

- name: Set up new Spago
run: npm install -g spago@next purescript

- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
Expand All @@ -75,9 +80,6 @@ jobs:
- name: Build Haskell
run: |
cabal build all --enable-tests --disable-optimization 2>&1 | tee build.log
- name: Build PureScript
run: |
spago build
- name: Build PureScript Argonaut test project
run: |
cd test/RoundTripArgonautAesonGeneric/app
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/purescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with: # https://github.com/purescript-contrib/setup-purescript#specify-versions
purescript: "0.15.13"
# - name: Set up a PureScript toolchain
# uses: purescript-contrib/setup-purescript@main
# with: # https://github.com/purescript-contrib/setup-purescript#specify-versions
# spago: "latest"
# purescript: "0.15.13"

- name: Set up new Spago
run: npm install -g spago@next purescript

- name: Cache PureScript dependencies
uses: actions/cache@v2
Expand All @@ -38,10 +42,10 @@ jobs:
spago install
- name: Build source
run: spago build --no-install
run: spago build

- name: Bundle app
run: spago bundle-app --to static/index.js
run: spago bundle --bundle-type app --outfile static/index.js

- name: Run tests
run: spago test --no-install
run: spago test
2 changes: 1 addition & 1 deletion example/test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ import Effect.Class.Console (log)
main :: Effect Unit
main = do
log "🍝"
log "You should add some tests."
log "empty test necessary to prevent `spago test` from failing"
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
buildInputs = [
pkgs.hello
pkgs.purs
pkgs.spago
pkgs.spago-unstable
pkgs.purs-tidy-bin.purs-tidy-0_10_0
pkgs.purs-backend-es
pkgs.purescript-language-server
Expand Down
2 changes: 1 addition & 1 deletion purescript-bridge.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Test-Suite tests
, RoundTripArgonautAesonGeneric.Types
, RoundTripJsonHelpers.Spec
, RoundTripJsonHelpers.Types
build-depends: aeson == 2.2.*
build-depends: aeson
, bytestring
, HUnit
, base
Expand Down
34 changes: 0 additions & 34 deletions spago.dhall

This file was deleted.

105 changes: 0 additions & 105 deletions test/RoundTripArgonautAesonGeneric/app/packages.dhall

This file was deleted.

22 changes: 0 additions & 22 deletions test/RoundTripArgonautAesonGeneric/app/spago.dhall

This file was deleted.

Loading

0 comments on commit 442924f

Please sign in to comment.