Skip to content

Merge pull request #4 from sctg-development/dependabot/npm_and_yarn/a… #14

Merge pull request #4 from sctg-development/dependabot/npm_and_yarn/a…

Merge pull request #4 from sctg-development/dependabot/npm_and_yarn/a… #14

Workflow file for this run

name: Run CI tests with Vitest
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Create fake wrangler.toml
run: |
echo "#:schema node_modules/wrangler/config-schema.json" > wrangler.toml
echo 'name = "turgeand-messaging"' >> wrangler.toml
echo 'main = "src/index.ts"' >> wrangler.toml
echo 'compatibility_date = "2024-07-01"' >> wrangler.toml
echo 'compatibility_flags = ["nodejs_compat"]' >> wrangler.toml
echo 'kv_namespaces = [' >> wrangler.toml
echo ' { binding = "TWILIO_KV", id = "085b7cbf251c15d1c2e1e5c063ac86b5" }' >> wrangler.toml
echo ']' >> wrangler.toml
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test:once