Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re:Hydration #54

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 29 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,41 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main
- uses: actions/setup-node@v2
with:
purescript: "unstable"
node-version: 18

- uses: actions/setup-node@v2
- uses: pnpm/action-setup@v4
with:
node-version: "14"
version: 9
run_install: false

- name: Install dependencies
- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.yaml') }}
path: |
.spago
output

- name: Get pnpm store directory
shell: bash
run: |
npm install -g bower
npm install
bower install --production
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Cache pnpm Dependencies
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: Build source
run: npm run-script build
run: pnpm build

- name: Run tests
run: |
bower install
npm run-script test --if-present
run: pnpm test --silent
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"private": true,
"scripts": {
"clean": "rimraf output && rimraf",
"test": "pulp build -I test -- --censor-lib --strict",
"build": "pulp build -- --censor-lib --strict"
"clean": "rimraf output",
"build": "spago build",
"test": "pnpm test:hydration",
"test:hydration": "spago test -p halogen-vdom-test-hydration"
},
"devDependencies": {
"pulp": "^16.0.0-0",
"purescript-psa": "^0.8.2",
"rimraf": "^3.0.2"
"jsdom": "^24.1.0",
"purescript": "^0.15.15",
"purs-tidy": "^0.11.0",
"rimraf": "^5.0.7",
"spago": "^0.93.32"
}
}
Loading
Loading