Merge pull request #390 from gvolpe/update/sbt-scalafix-0.13.0 #905
This file contains 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: Scala | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'web-app/**' | |
- 'imgs/**' | |
- 'README.md' | |
- 'kafka.yml' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'web-app/**' | |
- 'imgs/**' | |
- 'README.md' | |
- 'docker-compose.yml' | |
- 'kafka.yml' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2.3.2 | |
- name: "Cache for sbt & coursier ♨️" | |
uses: coursier/cache-action@v4.1 | |
with: | |
extraSbtFiles: 'tmp/remote-cache/**' | |
- name: "Starting up Redis 🐳" | |
run: docker compose up -d redis | |
- name: "Install Nix ❄️" | |
uses: cachix/install-nix-action@v22 | |
- name: "Install Cachix ❄️" | |
uses: cachix/cachix-action@v12 | |
with: | |
name: feda | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: "Run trading tests 🚀" | |
run: nix develop -c sbt 'pullRemoteCache;test;it/test;webapp/fastLinkJS;pushRemoteCache' | |
- name: "Shutting down Redis 🐳" | |
run: docker compose down |