fixing tests #5
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: 🚀 Test and Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NODE_VER: 16.14.0 | |
services: | |
# docker run --name durabletask-sidecar -p 4001:4001 --env 'DURABLETASK_SIDECAR_LOGLEVEL=Debug' --rm cgillum/durabletask-sidecar:latest start --backend Emulator | |
durabletask-sidecar: | |
image: cgillum/durabletask-sidecar:latest | |
ports: | |
- 4001:4001 | |
env: | |
DURABLETASK_SIDECAR_LOGLEVEL: Debug | |
DURABLETASK_STORAGE_PROVIDER: Emulator | |
steps: | |
- name: 📥 Checkout code | |
uses: actions/checkout@v2 | |
- name: ⚙️ NodeJS - Install | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VER }} | |
registry-url: "https://registry.npmjs.org" | |
- name: ⚙️ Install dependencies | |
run: npm install | |
- name: ✅ Run unit tests | |
run: npm test test/unit | |
- name: ✅ Run e2e tests | |
run: ./scripts/test-e2e.sh |