-
Notifications
You must be signed in to change notification settings - Fork 72
50 lines (42 loc) · 1.09 KB
/
ci-backend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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