-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.15 KB
/
dev.yml
File metadata and controls
52 lines (44 loc) · 1.15 KB
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
51
52
name: dev
on:
workflow_dispatch:
push:
branches: [main]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/setup-action@v1.2.0
with:
jvm: temurin:1.21
apps: sbt
- uses: coursier/cache-action@v6
- uses: actions/setup-node@v4.2.0
with:
node-version: "22.15.0"
registry-url: "https://registry.npmjs.org"
- run: npm install -g npm@10.9.2
- name: Build Backend
working-directory: backend
run: |
sbt clean
sbt test:compile
- name: Tests Backend
working-directory: backend
run: sbt test
- name: Build Frontend
working-directory: frontend
run: |
npm ci
npm run build
- name: Test Frontend
working-directory: frontend
run: npm run test
- name: Notify slack
if: always()
continue-on-error: true
uses: kpritam/slack-job-status-action@v1
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel: ci-dev