-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (30 loc) · 901 Bytes
/
ci.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
name: Scala
on:
pull_request: {}
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
java:
- jdk17
steps:
- uses: actions/checkout@v2.3.2
- name: "Install Docker Compose"
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: "Starting up Pulsar 🐳"
run: docker-compose up -d
- name: "Cache for sbt & coursier ♨️"
uses: coursier/cache-action@v4.1
- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v22
- name: "Run with ${{ matrix.java }} 🚀"
run: nix-shell --argstr java "${{ matrix.java }}" --run "SBT_OPTS='--add-opens java.base/java.lang=ALL-UNNAMED' sbt + 'it:test;test;makeSite;doc'"
- name: "Shutting down Pulsar 🐳"
run: docker-compose down