Regenerate PR checks

This commit is contained in:
Henry Mercer 2024-06-17 11:36:34 +01:00
parent c884bf6268
commit e7ce02a547

View file

@ -11,22 +11,25 @@ env:
on: on:
push: push:
branches: branches:
- main - main
- releases/v2 - releases/v*
pull_request: pull_request:
types: types:
- opened - opened
- synchronize - synchronize
- reopened - reopened
- ready_for_review - ready_for_review
schedule:
- cron: '0 5 * * *'
workflow_dispatch: {} workflow_dispatch: {}
jobs: jobs:
swift-autobuild: swift-autobuild:
strategy: strategy:
fail-fast: false
matrix: matrix:
include: include:
- os: macos-latest - os: macos-latest
version: nightly-latest version: nightly-latest
name: Swift analysis using autobuild name: Swift analysis using autobuild
permissions: permissions:
contents: read contents: read
@ -34,47 +37,51 @@ jobs:
timeout-minutes: 45 timeout-minutes: 45
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Check out repository - name: Setup Python on MacOS
uses: actions/checkout@v4 uses: actions/setup-python@v5
- name: Prepare test if: >-
id: prepare-test runner.os == 'macOS' && (
uses: ./.github/actions/prepare-test
with: matrix.version == 'stable-20230403' ||
version: ${{ matrix.version }}
use-all-platform-bundle: 'false' matrix.version == 'stable-v2.13.5' ||
- name: Set environment variable for Swift enablement
if: >- matrix.version == 'stable-v2.14.6')
runner.os != 'Windows' && ( with:
matrix.version == '20220908' || python-version: '3.11'
matrix.version == '20221211' - name: Check out repository
) uses: actions/checkout@v4
shell: bash - name: Prepare test
run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV id: prepare-test
- uses: ./../action/init uses: ./.github/actions/prepare-test
id: init with:
with: version: ${{ matrix.version }}
languages: swift use-all-platform-bundle: 'false'
tools: ${{ steps.prepare-test.outputs.tools-url }} - uses: ./../action/init
- uses: ./../action/.github/actions/setup-swift id: init
with: with:
codeql-path: ${{steps.init.outputs.codeql-path}} languages: swift
- name: Check working directory tools: ${{ steps.prepare-test.outputs.tools-url }}
shell: bash - uses: ./../action/.github/actions/setup-swift
run: pwd with:
- uses: ./../action/autobuild codeql-path: ${{steps.init.outputs.codeql-path}}
timeout-minutes: 10 - name: Check working directory
- uses: ./../action/analyze shell: bash
id: analysis run: pwd
with: - uses: ./../action/autobuild
upload-database: false timeout-minutes: 10
- name: Check database - uses: ./../action/analyze
shell: bash id: analysis
run: | with:
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}" upload-database: false
if [[ ! -d "$SWIFT_DB" ]]; then - name: Check database
echo "Did not create a database for Swift." shell: bash
exit 1 run: |
fi 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
env: env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: 'true' # Remove when Swift is GA. CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: 'true' # Remove when Swift is GA.
CODEQL_ACTION_TEST_MODE: true CODEQL_ACTION_TEST_MODE: true