Merge pull request #6 from jonreid/main #2
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: Swift CI | |
| on: | |
| schedule: | |
| # each fifteen day of month | |
| - cron: "0 0 15 * *" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "swift/**" | |
| - ".github/workflows/swift.yml" | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "swift/**" | |
| - ".github/workflows/swift.yml" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: all tests except the expected failing one | |
| working-directory: swift | |
| run: | | |
| # Run all tests, excluding the one we expect to fail. | |
| swift test --skip "paid" | |
| - name: expected failing test | |
| working-directory: swift | |
| run: | | |
| # This test should fail due to the bug in the isPaid method. | |
| if swift test --filter "paid"; then | |
| echo "::error::Test unexpectedly passed!" | |
| exit 1 | |
| else | |
| echo "Test failed as expected - bug still exists" | |
| fi |