Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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: 41 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test
on:
push:
branches:
- "**"
workflow_dispatch:
jobs:
ci_checks:
uses: parcellab/ci/.github/workflows/ci-requirements.yaml@v8

ci_check_result:
needs: ci_checks
if: always()
runs-on: ubuntu-latest
steps:
- name: Show CI check results
run: |
echo "full_run_required=${{ needs.ci_checks.outputs.full_run_required }}"
echo "test_run_required=${{ needs.ci_checks.outputs.test_run_required }}"

test:
needs: ci_checks
if: ${{ needs.ci_checks.outputs.test_run_required == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 1

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
Comment thread
andibeuge marked this conversation as resolved.
Outdated
cache: npm

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
41 changes: 5 additions & 36 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
"prepublishOnly": "npm run build && npm run test",
"prepare": "husky"
},
"overrides": {
"serialize-javascript": ">=7.0.5"
},
"files": [
"index.js",
"lib",
Expand Down
Loading