Skip to content
Merged
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
23 changes: 17 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,27 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Test
run: npm test


- name: Test with coverage
run: npm run test:coverage

- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/

- name: Report results to DeepSource
run: |
curl -fsSL https://cli.deepsource.com/install | BINDIR=./bin sh
./bin/deepsource report --analyzer test-coverage --key javascript --value-file coverage/lcov.info
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
38 changes: 23 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ on:
workflow_dispatch:

concurrency:
group: 'pages'
group: "pages"
cancel-in-progress: true

permissions:
contents: write
pages: write
id-token: write
pull-requests: read

jobs:
build:
Expand Down Expand Up @@ -41,7 +42,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
cache: "npm"

- name: Install dependencies
Expand All @@ -56,15 +57,22 @@ jobs:
name: build-output
path: dist/

# - name: Test
# run: npm test
- name: Test with coverage
run: npm run test:coverage

- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/

- name: Report results to DeepSource
run: |
curl -fsSL https://cli.deepsource.com/install | BINDIR=./bin sh
./bin/deepsource report --analyzer test-coverage --key javascript --value-file coverage/lcov.info
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}

# - name: Upload test results
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: test-results
# path: test-results.json

deploy:
name: Deploy GH Pages
Expand All @@ -77,18 +85,18 @@ jobs:
with:
name: build-output
path: ./dist

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
path: "./dist"

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

create_release:
name: Create release
needs: [build, deploy]
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

/coverage/
Loading
Loading