Merge pull request #701 from guardian/update/non_aws #29
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
| # This repo contains an Example app in its own standalone SBT project. | |
| # So this CI workflow runs whenever something changes in that project. | |
| name: CI for the Example app | |
| on: | |
| # When a PR is merged | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - example/** | |
| # When a PR is raised (for example, dependency updates from Dependabot or Scala Steward) | |
| pull_request: | |
| paths: | |
| - example/** | |
| # When a workflow is manually triggered | |
| workflow_dispatch: | |
| jobs: | |
| # Compile and run tests | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| working-directory: ./example | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Install Scala | |
| uses: guardian/setup-scala@v1 | |
| - run: > | |
| sbt | |
| compile | |
| Test/compile | |
| scalafmtCheckAll | |
| scalafmtSbtCheck | |
| test |