Bump the all-dependencies group with 2 updates #200
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: { types: [opened, reopened, synchronize, ready_for_review] } | |
push: { branches: [ main ] } | |
env: | |
LOG_LEVEL: info | |
SWIFT_DETERMINISTIC_HASHING: 1 | |
jobs: | |
integration-linux: | |
strategy: | |
fail-fast: false | |
matrix: | |
fluentflags: | |
- --no-fluent | |
- --fluent.db mysql | |
- --fluent.db postgres | |
- --fluent.db sqlite | |
- --fluent.db mongo | |
leafflags: [--leaf, --no-leaf] | |
runs-on: ubuntu-latest | |
container: swift:5.9-jammy | |
steps: | |
- name: Check out toolbox | |
uses: actions/checkout@v4 | |
- name: Build toolbox | |
run: swift build | |
- name: Execute new project command | |
env: | |
FLUENTFLAGS: ${{ matrix.fluentflags }} | |
LEAFFLAGS: ${{ matrix.leafflags }} | |
run: | | |
swift run \ | |
vapor new toolbox-test \ | |
--no-commit -o /tmp/toolbox-test \ | |
${FLUENTFLAGS} ${LEAFFLAGS} | |
- name: Test new project | |
run: swift test --package-path /tmp/toolbox-test | |
integration-macos: | |
strategy: | |
fail-fast: false | |
matrix: | |
fluentflags: | |
- --no-fluent | |
- --fluent.db mysql | |
- --fluent.db postgres | |
- --fluent.db sqlite | |
- --fluent.db mongo | |
leafflags: [--leaf, --no-leaf] | |
runs-on: macos-13 | |
steps: | |
- name: Select toolchain | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: { xcode-version: latest-stable } | |
- name: Check out toolbox | |
uses: actions/checkout@v4 | |
- name: Build toolbox | |
run: swift build | |
- name: Execute new project command | |
env: | |
FLUENTFLAGS: ${{ matrix.fluentflags }} | |
LEAFFLAGS: ${{ matrix.leafflags }} | |
run: | | |
swift run \ | |
vapor new toolbox-test \ | |
--no-commit -o /tmp/toolbox-test \ | |
${FLUENTFLAGS} ${LEAFFLAGS} | |
- name: Test new project | |
run: swift test --package-path /tmp/toolbox-test | |
gh-codeql: | |
strategy: | |
fail-fast: false | |
matrix: | |
runner-os: ['ubuntu-latest', 'macos-13'] | |
runs-on: ${{ matrix.runner-os }} | |
permissions: { actions: write, contents: read, security-events: write } | |
timeout-minutes: 60 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Select Swift 5.8 on Linux | |
if: ${{ startsWith(matrix.runner-os, 'ubuntu') }} | |
uses: vapor/[email protected] | |
with: | |
toolchain: 5.8 | |
- name: Select Swift 5.8 on macOS | |
if: ${{ startsWith(matrix.runner-os, 'macos') }} | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '~14.3' | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: { languages: swift } | |
- name: Perform build | |
run: swift build | |
- name: Run CodeQL analyze | |
uses: github/codeql-action/analyze@v3 | |