Skip to content

Update README.md

Update README.md #191

Workflow file for this run

name: CI
on:
push:
branches: [main, versions]
pull_request:
branches: [main]
jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs of this workflow on same branch
uses: rokroskar/workflow-run-cleanup-action@v0.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
swiftlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run SwiftLint
uses: norio-nomura/action-swiftlint@3.1.0
with:
args: --strict
build-macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Run tests
run: swift build -v -c release
test-macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Setup secrets.json
run: |
echo '
{
"deepLApiKey": "${{ secrets.DEEP_L_API_KEY }}",
"microsoftSubscriptionKey": "${{ secrets.MICROSOFT_SUBSCRIPTION_KEY }}"
}
' >> Tests/BartyCrouchTranslatorTests/Secrets/secrets.json
- name: Run tests
run: swift test -v