Replace mocha with Node's test suit #755
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Preview with Firebase Hosting | |
on: | |
pull_request: | |
paths: | |
- "src/**" | |
- "README.md" | |
- "package.json" | |
- "docs_statics/*.html" | |
jobs: | |
build_and_preview: | |
name: Build documentation and preview | |
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
npm ci --only=dev | |
npm run document | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_WHATSAPPAPIJS }}" | |
projectId: whatsappapijs |