mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./swift/actions/create-extractor-pack
|
- uses: ./swift/actions/create-extractor-pack
|
||||||
qltests:
|
qltests-linux:
|
||||||
needs: build-linux
|
needs: build-linux
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./swift/actions/env-setup
|
- uses: ./swift/actions/run-ql-tests
|
||||||
- uses: ./swift/actions/share-extractor-pack
|
qltests-macos:
|
||||||
- name: Test qltest.sh
|
needs: build-macos
|
||||||
run: |
|
runs-on: macos-12-xl
|
||||||
bazel test //swift/tools/test/qltest
|
steps:
|
||||||
- uses: ./.github/actions/fetch-codeql
|
- uses: actions/checkout@v3
|
||||||
- name: Run QL tests
|
- uses: ./swift/actions/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 }}
|
|
||||||
integration-tests-linux:
|
integration-tests-linux:
|
||||||
needs: build-linux
|
needs: build-linux
|
||||||
runs-on: ubuntu-latest
|
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