Merge pull request #459 from senacor/feature/refactor_validation #815
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: Integration Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/azure-functions/node:4-node18 | |
env: | |
FUNCTIONS_WORKER_RUNTIME: node | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install global dependencies | |
shell: bash | |
run: | | |
npm install -g azure-functions-core-tools@4 --unsafe-perm true | |
npm install -g wait-on | |
- name: install dependencies | |
shell: bash | |
run: npm ci | |
- name: start-test-function | |
shell: bash | |
working-directory: ./example | |
run: | | |
npm run start & | |
echo "Waiting until function launched on 8080..." | |
wait-on tcp:8080 | |
echo "Function launched" | |
- name: test-function | |
shell: bash | |
run: | | |
npm run test:integration | |