Files
GRDB.swift/.github/workflows/CI.yml
T
naveen 11f95806c4 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-05-31 00:30:47 +00:00

171 lines
4.6 KiB
YAML

name: "GRDB CI"
on:
push:
branches:
- master
- development
paths:
- 'GRDB/**'
- 'Tests/**'
- '.github/workflows/**'
- 'Package.swift'
pull_request:
paths:
- 'GRDB/**'
- 'Tests/**'
- '.github/workflows/**'
- 'Package.swift'
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
jobs:
macOS:
name: macOS
runs-on: ${{ matrix.runsOn }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.3.1, Swift 5.6"
shell: "/bin/zsh {0}"
- xcode: "Xcode_13.2.1.app"
runsOn: macOS-11
name: "macOS 11, Xcode 13.2.1, Swift 5.5.2"
shell: "/bin/zsh {0}"
- xcode: "Xcode_13.1.app"
runsOn: macOS-11
name: "macOS 11, Xcode 13.1, Swift 5.5.1"
shell: "/bin/zsh {0}"
- xcode: "Xcode_13.0.app"
runsOn: macOS-11
name: "macOS 11, Xcode 13.0, Swift 5.5.0"
shell: "/bin/zsh {0}"
- xcode: "Xcode_12.5.1.app"
runsOn: macOS-11
name: "macOS 11, Xcode 12.5.1, Swift 5.4"
shell: "/bin/zsh {0}"
- xcode: "Xcode_12.4.app"
runsOn: macOS-10.15
name: "macOS 10.15, Xcode 12.4, Swift 5.3"
shell: "/bin/zsh {0}"
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.name }}
run: make test_framework_GRDBOSX_maxSwift
iOS:
name: iOS
runs-on: ${{ matrix.runsOn }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.3.1, Swift 5.6"
shell: "/bin/zsh {0}"
- xcode: "Xcode_12.4.app"
runsOn: macOS-10.15
name: "macOS 10.15, Xcode 12.4, Swift 5.3"
shell: "/bin/zsh {0}"
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.name }}
run: make test_framework_GRDBiOS_maxTarget_maxSwift
SPM:
name: SPM
runs-on: ${{ matrix.runsOn }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.3.1, Swift 5.6"
shell: "/bin/zsh {0}"
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.name }}
run: make test_SPM test_install_SPM
SQLCipher3:
name: SQLCipher3
runs-on: ${{ matrix.runsOn }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.3.1, Swift 5.6"
shell: "/bin/zsh {0}"
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.name }}
run: make test_framework_SQLCipher3Encrypted
SQLCipher4:
name: SQLCipher4
runs-on: ${{ matrix.runsOn }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.3.1, Swift 5.6"
shell: "/bin/zsh {0}"
- xcode: "Xcode_12.4.app"
runsOn: macOS-10.15
name: "macOS 10.15, Xcode 12.4, Swift 5.3"
shell: "/bin/zsh {0}"
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.name }}
run: make test_framework_SQLCipher4Encrypted
CustomSQLite:
name: CustomSQLite
runs-on: ${{ matrix.runsOn }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.3.1, Swift 5.6"
shell: "/bin/zsh {0}"
- xcode: "Xcode_12.4.app"
runsOn: macOS-10.15
name: "macOS 10.15, Xcode 12.4, Swift 5.3"
shell: "/bin/zsh {0}"
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.name }}
run: make test_framework_GRDBCustomSQLiteOSX
XCFramework:
name: XCFramework
runs-on: ${{ matrix.runsOn }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.3.1, Swift 5.6"
shell: "/bin/zsh {0}"
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.name }}
run: make test_archive_GRDBOSX_xcframework