Update README.md #153
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| types: [opened, reopened] | |
| jobs: | |
| test: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run tests | |
| run: swift test -v | |
| test-linux: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: swift-actions/setup-swift@v2 | |
| with: | |
| swift-version: "5.10.1" | |
| - name: Get swift version | |
| run: swift --version # Swift 5.1.0 | |
| - name: Prepare Git | |
| run: git config --global user.email "test@example.com" && git config --global user.name "Test User" | |
| - name: Run tests | |
| run: swift test -v |