Get ready for v5 release #585
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 ] } | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
container: swift:jammy | |
steps: | |
- name: Check out JWTKit | |
uses: actions/checkout@v4 | |
- name: Run format lint check | |
run: swift format lint --strict --recursive --parallel . | |
linux-integration: | |
if: ${{ !(github.event.pull_request.draft || false) }} | |
runs-on: ubuntu-latest | |
container: swift:jammy | |
steps: | |
- name: Check out JWTKit | |
uses: actions/checkout@v4 | |
with: | |
path: jwt-kit | |
- name: Check out JWT provider | |
uses: actions/checkout@v4 | |
with: | |
repository: vapor/jwt | |
path: jwt | |
- name: Use local JWTKit | |
run: swift package --package-path jwt edit jwt-kit --path ./jwt-kit | |
- name: Run tests with Thread Sanitizer | |
run: swift test --package-path jwt --sanitize=thread | |
unit-tests: | |
uses: vapor/ci/.github/workflows/run-unit-tests.yml@main | |
with: | |
with_api_check: ${{ github.event_name == 'pull_request' }} | |
warnings_as_errors: true | |
secrets: inherit | |
ios-tests: | |
if: ${{ !(github.event.pull_request.draft || false) }} | |
runs-on: macos-latest | |
steps: | |
- name: Select appropriate Xcode version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: 16.0 | |
- name: Check out JWTKit | |
uses: actions/checkout@v4 | |
- name: Run iOS Tests | |
run: xcodebuild -scheme jwt-kit -destination generic/platform=iOS |