Skip to content

add 1es official build pipeline (#48) #85

add 1es official build pipeline (#48)

add 1es official build pipeline (#48) #85

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