DRIVERS-3061: Skip $out test on serverless #4053
Workflow file for this run
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: Check if all JSON test files are up-to-date | |
on: | |
push: | |
branches: [master] | |
pull_request: ~ | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Set up npm | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- name: Install dependencies | |
run: | | |
npm install -g js-yaml | |
pip3 install pymongo pyyaml jinja2 | |
- name: Regenerate JSON test files | |
run: | | |
python3 ./source/server-discovery-and-monitoring/tests/errors/generate-error-tests.py | |
python3 ./source/client-side-encryption/etc/generate-corpus.py ./source/client-side-encryption/corpus | |
python3 ./source/client-side-encryption/etc/generate-test.py ./source/client-side-encryption/etc/test-templates/*.template ./source/client-side-encryption/tests/legacy | |
python3 ./source/client-side-operations-timeout/etc/generate-basic-tests.py ./source/client-side-operations-timeout/etc/templates ./source/client-side-operations-timeout/tests | |
python3 ./source/etc/generate-handshakeError-tests.py | |
cd source && make -B | |
- name: "Commit the changes" | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Update generated files" |