mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 10:10:17 +08:00
32 lines
889 B
YAML
32 lines
889 B
YAML
name: "Swift analysis using autobuild"
|
|
description: "Tests creation of a Swift database using autobuild"
|
|
versions: ["nightly-latest"]
|
|
operatingSystems: ["macos"]
|
|
steps:
|
|
- uses: ./../action/init
|
|
id: init
|
|
with:
|
|
languages: swift
|
|
build-mode: autobuild
|
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
|
- uses: ./../action/.github/actions/setup-swift
|
|
with:
|
|
codeql-path: ${{steps.init.outputs.codeql-path}}
|
|
- name: Check working directory
|
|
shell: bash
|
|
run: pwd
|
|
- uses: ./../action/autobuild
|
|
timeout-minutes: 30
|
|
- uses: ./../action/analyze
|
|
id: analysis
|
|
with:
|
|
upload-database: false
|
|
- name: Check database
|
|
shell: bash
|
|
run: |
|
|
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}"
|
|
if [[ ! -d "$SWIFT_DB" ]]; then
|
|
echo "Did not create a database for Swift."
|
|
exit 1
|
|
fi
|