From bc65d358f2b537a0498c46e2a47ccbd020a71f3b Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Wed, 2 Nov 2022 14:43:57 +0100 Subject: [PATCH] Swift: fix wrongly exchanged action bodies --- .../actions/create-extractor-pack/action.yml | 20 +++++++++---------- swift/actions/run-quick-tests/action.yml | 20 ++++++++++--------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/swift/actions/create-extractor-pack/action.yml b/swift/actions/create-extractor-pack/action.yml index 74fbacf377f..f8ad7bd741e 100644 --- a/swift/actions/create-extractor-pack/action.yml +++ b/swift/actions/create-extractor-pack/action.yml @@ -1,18 +1,16 @@ -name: Run Swift quick tests -description: Runs Swift tests defined in Bazel. Must be run after `setup-env` +name: Build Swift CodeQL pack +description: Builds the Swift CodeQL pack runs: using: composite steps: - - name: Run xcode-autobuilder tests - if: runner.os == 'macOS' + - uses: ./swift/actions/setup-env + - uses: ./swift/actions/share-extractor-pack + - name: Build Swift extractor shell: bash run: | - bazel test //swift/xcode-autobuilder/tests - - name: Run codegen tests + bazel run //swift:create-extractor-pack + # running all small tests here to avoid spinning another runner and redoing bazel analysis + - name: Run unit tests shell: bash run: | - bazel test //swift/codegen/tests - - name: Run qltest tests - shell: bash - run: | - bazel test //swift/tools/test/qltest + bazel test --test_filter=small --build_tests_only //swift/... diff --git a/swift/actions/run-quick-tests/action.yml b/swift/actions/run-quick-tests/action.yml index f8ad7bd741e..74fbacf377f 100644 --- a/swift/actions/run-quick-tests/action.yml +++ b/swift/actions/run-quick-tests/action.yml @@ -1,16 +1,18 @@ -name: Build Swift CodeQL pack -description: Builds the Swift CodeQL pack +name: Run Swift quick tests +description: Runs Swift tests defined in Bazel. Must be run after `setup-env` runs: using: composite steps: - - uses: ./swift/actions/setup-env - - uses: ./swift/actions/share-extractor-pack - - name: Build Swift extractor + - name: Run xcode-autobuilder tests + if: runner.os == 'macOS' shell: bash run: | - bazel run //swift:create-extractor-pack - # running all small tests here to avoid spinning another runner and redoing bazel analysis - - name: Run unit tests + bazel test //swift/xcode-autobuilder/tests + - name: Run codegen tests shell: bash run: | - bazel test --test_filter=small --build_tests_only //swift/... + bazel test //swift/codegen/tests + - name: Run qltest tests + shell: bash + run: | + bazel test //swift/tools/test/qltest