Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSCEXAM-000 Travis -> Github Workflow #1016

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Exam

on: [push]

jobs:
build:

runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_DB: sitnet_test
POSTGRES_USER: sitnet
POSTGRES_PASSWORD: sitnetsitnet
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: 21
distribution: temurin

- name: Set up Node 18
uses: actions/setup-node@v4
with:
node-version: 18.x

- 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: |
sed -i 's/\/var\/log\/exam/logs/g' $GITHUB_WORKSPACE/conf/logback.xml
sbt test


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

This file was deleted.

Loading