From fa89906a00d4d0555a2ffe3a4873b1c6eba5e2ed Mon Sep 17 00:00:00 2001 From: leogdion Date: Thu, 27 Apr 2023 18:10:58 -0400 Subject: [PATCH] Adding CodeQL for Swift (#45) --- .github/workflows/syndikit.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/syndikit.yml b/.github/workflows/syndikit.yml index 29a3ce2..377e675 100644 --- a/.github/workflows/syndikit.yml +++ b/.github/workflows/syndikit.yml @@ -3,6 +3,10 @@ on: push: branches-ignore: - '*WIP' + +env: + CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: true + jobs: build-ubuntu: name: Build on Ubuntu @@ -151,8 +155,14 @@ jobs: run: | brew update brew install mint + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} - name: Build run: swift build + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 - name: Run Swift Package tests run: swift test -v --enable-code-coverage - uses: sersoft-gmbh/swift-coverage-action@v2