mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: reenable ql tests on macos
This commit is contained in:
29
.github/workflows/swift.yml
vendored
29
.github/workflows/swift.yml
vendored
@@ -63,31 +63,18 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./swift/actions/create-extractor-pack
|
||||
qltests:
|
||||
qltests-linux:
|
||||
needs: build-linux
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./swift/actions/env-setup
|
||||
- uses: ./swift/actions/share-extractor-pack
|
||||
- name: Test qltest.sh
|
||||
run: |
|
||||
bazel test //swift/tools/test/qltest
|
||||
- uses: ./.github/actions/fetch-codeql
|
||||
- name: Run QL tests
|
||||
run: |
|
||||
codeql test run \
|
||||
--threads=0 \
|
||||
--ram 5000 \
|
||||
--search-path "${{ github.workspace }}/swift/extractor-pack" \
|
||||
--check-databases \
|
||||
--check-unused-labels \
|
||||
--check-repeated-labels \
|
||||
--check-redefined-labels \
|
||||
--check-use-before-definition \
|
||||
ql/test
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
- uses: ./swift/actions/run-ql-tests
|
||||
qltests-macos:
|
||||
needs: build-macos
|
||||
runs-on: macos-12-xl
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./swift/actions/run-ql-tests
|
||||
integration-tests-linux:
|
||||
needs: build-linux
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
28
swift/actions/run-ql-tests/action.yml
Normal file
28
swift/actions/run-ql-tests/action.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Build Swift CodeQL pack
|
||||
description: Builds the Swift CodeQL pack
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: ./swift/actions/env-setup
|
||||
- uses: ./swift/actions/share-extractor-pack
|
||||
- uses: ./swift/actions/share-extractor-pack
|
||||
- name: Test qltest.sh
|
||||
shell: bash
|
||||
run: |
|
||||
bazel test //swift/tools/test/qltest
|
||||
- uses: ./.github/actions/fetch-codeql
|
||||
- name: Run QL tests
|
||||
shell: bash
|
||||
run: |
|
||||
codeql test run \
|
||||
--threads=0 \
|
||||
--ram 5000 \
|
||||
--search-path "${{ github.workspace }}/swift/extractor-pack" \
|
||||
--check-databases \
|
||||
--check-unused-labels \
|
||||
--check-repeated-labels \
|
||||
--check-redefined-labels \
|
||||
--check-use-before-definition \
|
||||
ql/test
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
Reference in New Issue
Block a user