diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc54710..13a43ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,58 +9,29 @@ on: jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Set up PureScript toolchain + - name: Set up a PureScript toolchain uses: purescript-contrib/setup-purescript@main with: - purescript: "unstable" + purescript: "latest" purs-tidy: "latest" + spago: "unstable" - name: Cache PureScript dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: - key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} + key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }} path: | .spago output - - name: Set up Node toolchain - uses: actions/setup-node@v2 - with: - node-version: "14.x" - - - name: Cache NPM dependencies - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - - name: Install NPM dependencies - run: npm install - - - name: Build the project - run: npm run build + - name: Build source + run: spago build --censor-stats --strict --ensure-ranges --pedantic-packages - name: Run tests - run: npm run test + run: spago test --offline --censor-stats --strict --pedantic-packages - - name: Check formatting + - name: Verify formatting run: purs-tidy check src test - - - name: Verify Bower & Pulp - run: | - npm install bower pulp@16.0.0-0 - npx bower install - npx pulp build -- --censor-lib --strict - if [ -d "test" ]; then - npx pulp test - fi diff --git a/bower.json b/bower.json deleted file mode 100644 index cf174fa..0000000 --- a/bower.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "purescript-avar", - "homepage": "https://github.com/slamdata/purescript-avar", - "authors": [ - "Nathan Faubion " - ], - "description": "Low-level interface for asynchronous variables", - "repository": { - "type": "git", - "url": "https://github.com/purescript-contrib/purescript-avar.git" - }, - "main": "", - "keywords": [ - "PureScript", - "AVar" - ], - "license": "Apache-2.0", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "test", - "tests" - ], - "dependencies": { - "purescript-aff": "^7.0.0", - "purescript-effect": "^4.0.0", - "purescript-either": "^6.0.0", - "purescript-exceptions": "^6.0.0", - "purescript-functions": "^6.0.0", - "purescript-maybe": "^6.0.0" - }, - "devDependencies": { - "purescript-assert": "^6.0.0", - "purescript-console": "^6.0.0", - "purescript-refs": "^6.0.0", - "purescript-transformers": "^6.0.0" - } -} diff --git a/package.json b/package.json index 0c27072..5f47696 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,14 @@ { "private": true, "scripts": { - "build": "eslint src && spago build --purs-args '--censor-lib --strict'", - "test": "spago test --no-install" + "build": "eslint src && spago build --censor-stats --strict --ensure-ranges --pedantic-packages", + "test": "spago test --offline" }, "devDependencies": { - "eslint": "^7.6.0", - "purescript-psa": "^0.8.2" - } -} + "eslint": "^9.12.0", + "purescript-psa": "^0.9.0" + }, + "authors": [ + "Nathan Faubion " + ] +} \ No newline at end of file diff --git a/packages.dhall b/packages.dhall deleted file mode 100644 index 582d6d3..0000000 --- a/packages.dhall +++ /dev/null @@ -1,4 +0,0 @@ -let upstream = - https://raw.githubusercontent.com/purescript/package-sets/prepare-0.15/src/packages.dhall - -in upstream diff --git a/spago.dhall b/spago.dhall deleted file mode 100644 index 90df30a..0000000 --- a/spago.dhall +++ /dev/null @@ -1,17 +0,0 @@ -{ name = "avar" -, dependencies = - [ "aff" - , "assert" - , "console" - , "effect" - , "either" - , "exceptions" - , "foldable-traversable" - , "functions" - , "maybe" - , "prelude" - , "refs" - ] -, packages = ./packages.dhall -, sources = [ "src/**/*.purs", "test/**/*.purs" ] -} diff --git a/spago.yaml b/spago.yaml new file mode 100644 index 0000000..e2e0de4 --- /dev/null +++ b/spago.yaml @@ -0,0 +1,25 @@ +package: + name: avar + description: Low-level interface for asynchronous variables + publish: + license: Apache-2.0 + version: 6.0.0 + location: + githubOwner: purescript-contrib + githubRepo: purescript-avar + dependencies: + - aff: ">=8.0.0 <9.0.0" + - effect: ">=4.0.0 <5.0.0" + - either: ">=6.1.0 <7.0.0" + - exceptions: ">=6.1.0 <7.0.0" + - functions: ">=6.0.0 <7.0.0" + - maybe: ">=6.0.0 <7.0.0" + - prelude: ">=6.0.1 <7.0.0" + test: + main: Test.Main + dependencies: + - assert + - console + - foldable-traversable + - refs +workspace: {} diff --git a/test/Main.purs b/test/Test/Main.purs similarity index 100% rename from test/Main.purs rename to test/Test/Main.purs