-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try replacing Travis with Github Actions
- Loading branch information
Matti Lupari
committed
Nov 16, 2023
1 parent
2a3cf2b
commit 0cf7bbd
Showing
2 changed files
with
59 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Exam | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_USER: postgres | ||
POSTGRES_DB: postgres | ||
|
||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
- uses: actions/checkout@v4 | ||
- name: Set up Node 18 | ||
uses: actions/setup-node@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 | ||
|
||
|
This file was deleted.
Oops, something went wrong.