Create dependabot.yml #6
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
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 |