Skip to content

Commit

Permalink
Try replacing Travis with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Matti Lupari committed Nov 16, 2023
1 parent 2a3cf2b commit 9fe14c7
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 43 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/scala.yml
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: Set up Database
env:
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
run: |
createuser sitnet
createdb --owner sitnet sitnet_test
psql -c "ALTER USER sitnet WITH PASSWORD 'sitnetsitnet';"
#run: psql -c 'CREATE DATABASE sitnet_test WITH OWNER 'sitnet';' -U postgres
- name: Build UI
run: |
cd ui
rm -rf node_modules
npm i
npm run check-format
npm run check-lint
npm run build
cd ..
- name: Run tests
run: sbt test


43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

0 comments on commit 9fe14c7

Please sign in to comment.