-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (35 loc) · 937 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
39
40
41
42
name: CI
on:
workflow_dispatch:
pull_request:
# triggering CI default branch improves caching
# see https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache
push:
branches:
- main
-
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'pan-domain-node/.nvmrc'
cache: npm
cache-dependency-path: 'pan-domain-node/package-lock.json'
- name: JS Build
run: |
pushd pan-domain-node
npm ci
npm run build
npm test
popd
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
cache: 'sbt'
- name: Scala Build
run: sbt clean +test