Skip to content

Commit

Permalink
merge unit test and codeql files to avoid some duplication in fetchin…
Browse files Browse the repository at this point in the history
…g and processing
  • Loading branch information
simonmcl committed Sep 25, 2023
1 parent 57e7adf commit 1e2e4d3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 80 deletions.
80 changes: 0 additions & 80 deletions .github/workflows/codeql.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ on:

# Checkout the code, and run mxcl's xcodebuild action to run the unit tests
jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'swift' ]

build:
runs-on: macos-12
strategy:
Expand All @@ -33,3 +47,17 @@ jobs:
scheme: KukaiCryptoSwift
code-coverage: true
upload-logs: always

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

0 comments on commit 1e2e4d3

Please sign in to comment.