Skip to content

Commit

Permalink
CI: re-adding codeQL and running on macos-14 because github actions c…
Browse files Browse the repository at this point in the history
…omplains if theres no jobs for some reason
  • Loading branch information
simonmcl committed Oct 24, 2024
1 parent 6fb2c01 commit 9271a03
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
#name: CodeQl
#on:
# push:
# branches:
# - develop
# pull_request:
# branches:
# - develop
#
#jobs:
# deploy:
# name: Running unit tests
# runs-on: macos-15
# steps:
# - name: Select Xcode version
# run: sudo xcode-select -s '/Applications/Xcode_16.app/Contents/Developer'
#
# - name: Checkout repository
# uses: actions/[email protected]
#
# - name: Get current date
# run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV
#
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v3
# with:
# languages: "swift"
#
# - name: Test
# run: xcodebuild -scheme KukaiCoreSwift -destination "platform=iOS Simulator,OS=18.0,name=iPhone 16" -resultBundlePath "~/xcode-$NOW.xcresult"
#
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v3
# with:
# category: "/language:swift"
name: CodeQl
on:
push:
branches:
- develop
pull_request:
branches:
- develop

jobs:
deploy:
name: Running unit tests
runs-on: macos-14
steps:
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer'

- name: Checkout repository
uses: actions/[email protected]

- name: Get current date
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: "swift"

- name: Test
run: xcodebuild -scheme KukaiCoreSwift -destination "platform=iOS Simulator,OS=17.2,name=iPhone 15" -resultBundlePath "~/xcode-$NOW.xcresult"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:swift"

0 comments on commit 9271a03

Please sign in to comment.