-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 1.02 KB
/
scala.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
name: Exam
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 1.21
- uses: actions/checkout@v4
- name: Set up Node 18
uses: actions/setup-nodejs@v4
with:
node-version: 18.x
- name: Create database user
run: psql -c "CREATE USER sitnet WITH PASSWORD 'sitnetsitnet';" -U postgres
- name: Create database
run: psql -c 'CREATE DATABASE sitnet_test WITH OWNER 'sitnet';' -U postgres
- name: Move to UI directory
run: cd ui
- name: Clean node_modules
run: rm -rf node_modules
- name: Install dependencies
run: npm i
- name: Check format
run: npm run check-format
- name: Lint
run: npm run check-lint
- name: Build production bundle
run: npm run build
- name: Move back to root
run: cd ..
- name: Run tests
run: sbt test