Merge pull request #8889 from redsun82/swift-codegen-unit-tests

Swift: add unit tests to code generation
This commit is contained in:
Paolo Tranquilli
2022-04-27 16:07:54 +02:00
committed by GitHub
22 changed files with 1172 additions and 184 deletions

View File

@@ -15,13 +15,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '~3.7'
python-version: '~3.8'
cache: 'pip'
- uses: ./.github/actions/fetch-codeql
- uses: bazelbuild/setup-bazelisk@v2
- name: Check code generation
- name: Install dependencies
run: |
pip install -r swift/codegen/requirements.txt
- name: Run unit tests
run: |
bazel test //swift/codegen:tests --test_output=errors
- name: Check that code was generated
run: |
bazel run //swift/codegen
git add swift
git diff --exit-code --stat HEAD