Skip to content

Refactor models (#93) #242

Refactor models (#93)

Refactor models (#93) #242

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: "ci-${{ github.head_ref || github.run_id }}"
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.app/Contents/Developer
jobs:
build-test:
name: Build and Test
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache SPM
uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Lint
run: swiftlint --strict --reporter github-actions-logging
- name: Build
run: swift build -Xswiftc -warnings-as-errors --build-tests
- name: Test
run: swift test --skip-build --parallel --filter TMDbTests
- name: Build for Release
run: swift build -c release -Xswiftc -warnings-as-errors
build-documentation:
name: Build Documentation
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache SPM
uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Build
run: swift package generate-documentation --product TMDb