-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (45 loc) · 1.22 KB
/
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
39
40
41
42
43
44
45
46
47
48
name: CI
on:
workflow_dispatch:
pull_request:
branches-ignore:
- "gh-pages"
push:
paths-ignore:
- ".git-blame-ignore-revs"
branches: [main]
# tags: ["v*"]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
Run-Tests:
name: CI
runs-on: ubuntu-latest
steps:
# https://github.com/japgolly/setup-everything-scala
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Needed for the release tag // `git fetch --tags` will also work
- name: Setup Java and Scala
uses: olafurpg/setup-scala@v14
with:
java-version: [email protected]
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Setup Scala.JS
uses: japgolly/setup-scalajs@v1
- name: Cache sbt
uses: coursier/[email protected]
- name: Cache embedmongo
uses: actions/cache@v2
with:
path: ~/.embedmongo
key: ${{ runner.os }}-embedmongo-4.14.0
restore-keys: |
${{ runner.os }}-embedmongo-4.14.0
### Compile and TESTS ###
- run: sbt -mem 2048 -J-Xmx5120m "test"
env:
NODE_OPTIONS: "--openssl-legacy-provider"