diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8e97f8c..3451a20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,10 +5,12 @@ on: workflow_dispatch: push: branch: [main] + pull_request: + branches: [main] jobs: build: runs-on: ubuntu-latest - name: ${{ matrix.arch }} + name: Build Test for ${{ matrix.arch }} strategy: matrix: arch: ["aarch64", "amd64", "armhf", "armv7", "i386"] @@ -35,4 +37,38 @@ jobs: args: | --test \ --${{ matrix.arch }} \ - --target . \ No newline at end of file + --target . + python: + name: "Python Tests" + runs-on: ubuntu-latest + strategy: + matrix: + action: [lint, coverage, security-checks] + container: + image: python:3.9 + steps: + - uses: actions/checkout@v3 + - name: Install Dependencies + run: cd api && make setup + - name: Echo dependencies + run: cd api && ./venv/bin/pip freeze + - name: Running ${{ matrix.action }} + run: cd api && make ${{ matrix.action }} + + nodejs: + name: "NodeJs Tests" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'yarn' + cache-dependency-path: webapp/yarn.lock + - name: Install Dependencies + run: cd webapp && yarn install + - name: Echo dependencies + run: cd webapp && react-scripts test --ci=true --all --watchAll=false + + + \ No newline at end of file diff --git a/.vscode/configurationCache.log b/.vscode/configurationCache.log deleted file mode 100644 index 604e229..0000000 --- a/.vscode/configurationCache.log +++ /dev/null @@ -1 +0,0 @@ -{"buildTargets":["local_logs","local_ps","local_run","local_stop"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}} \ No newline at end of file diff --git a/.vscode/dryrun.log b/.vscode/dryrun.log deleted file mode 100644 index d4086ac..0000000 --- a/.vscode/dryrun.log +++ /dev/null @@ -1,8 +0,0 @@ -make --dry-run --always-make --keep-going --print-directory -make: Entering directory '/home/ari/Projects/Shortumation' -docker-compose -f docker-compose.build.yaml -f docker-compose.test.yaml build -docker-compose -f docker-compose.build.yaml -f docker-compose.test.yaml up -d -sleep 1 -docker-compose -f docker-compose.build.yaml -f docker-compose.test.yaml ps -make: Leaving directory '/home/ari/Projects/Shortumation' - diff --git a/.vscode/targets.log b/.vscode/targets.log deleted file mode 100644 index f432922..0000000 --- a/.vscode/targets.log +++ /dev/null @@ -1,362 +0,0 @@ -make all --print-data-base --no-builtin-variables --no-builtin-rules --question -make: *** No rule to make target 'all'. Stop. - -# GNU Make 4.3 -# Built for x86_64-pc-linux-gnu -# Copyright (C) 1988-2020 Free Software Foundation, Inc. -# License GPLv3+: GNU GPL version 3 or later -# This is free software: you are free to change and redistribute it. -# There is NO WARRANTY, to the extent permitted by law. - -# Make data base, printed on Fri May 13 17:20:44 2022 - -# Variables - -# environment -GDK_BACKEND = x11 -# environment -LC_ALL = C -# environment -NO_AT_BRIDGE = 1 -# environment -PNPM_HOME = /home/ari/.local/share/pnpm -# environment -GTK_RC_FILES = /etc/gtk/gtkrc:/home/ari/.gtkrc:/home/ari/.config/gtkrc -# environment -VSCODE_IPC_HOOK_EXTHOST = /run/user/1000/vscode-ipc-f9d84edd-b084-4e53-beee-9f25f2f79698.sock -# environment -KONSOLE_DBUS_SERVICE = :1.8038 -# environment -LC_NAME = en_CA.UTF-8 -# environment -LC_NUMERIC = en_CA.UTF-8 -# environment -VSCODE_CWD = /home/ari/Projects/Shortumation -# environment -WINDOWID = 1 -# environment -LC_ADDRESS = en_CA.UTF-8 -# default -MAKE_COMMAND := make -# automatic -@D = $(patsubst %/,%,$(dir $@)) -# environment -GDK_DPI_SCALE = 1 -# environment -KONSOLE_VERSION = 211203 -# environment -VSCODE_HANDLES_UNCAUGHT_ERRORS = true -# default -.VARIABLES := -# environment -PWD = /home/ari/Projects/Shortumation -# automatic -%D = $(patsubst %/,%,$(dir $%)) -# environment -LSCOLORS = Gxfxcxdxbxegedabagacad -# environment -MAIL = /var/spool/mail/ari -# environment -OLDPWD = /home/ari/Projects/Shortumation/api -# environment -KONSOLE_DBUS_WINDOW = /Windows/1 -# automatic -^D = $(patsubst %/,%,$(dir $^)) -# environment -VSCODE_LOG_STACK = false -# automatic -%F = $(notdir $%) -# environment -VSCODE_CODE_CACHE_PATH = /home/ari/.config/Code/CachedData/57fd6d0195bb9b9d1b49f6da5db789060795de47 -# environment -XDG_SESSION_PATH = /org/freedesktop/DisplayManager/Session1 -# environment -LANG = C -# environment -XAUTHORITY = /run/user/1000/xauth_ejBDkJ -# default -.LOADED := -# default -.INCLUDE_DIRS = /usr/include /usr/local/include /usr/include -# environment -COLORFGBG = 15;0 -# makefile -MAKEFLAGS = pqrR -# environment -PLASMA_USE_QT_SCALING = 1 -# makefile -CURDIR := /home/ari/Projects/Shortumation -# environment -VSCODE_PIPE_LOGGING = true -# environment -APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = true -# automatic -*D = $(patsubst %/,%,$(dir $*)) -# environment -PAM_KWALLET5_LOGIN = /run/user/1000/kwallet5.socket -# environment -MFLAGS = -pqrR -# default -.SHELLFLAGS := -c -# environment -QT_LINUX_ACCESSIBILITY_ALWAYS_ON = 1 -# environment -WAYLAND_DISPLAY = wayland-0 -# environment -XDG_CONFIG_DIRS = /home/ari/.config/kdedefaults:/etc/xdg -# automatic -+D = $(patsubst %/,%,$(dir $+)) -# environment -XCURSOR_THEME = breeze_cursors -# environment -XDG_SESSION_DESKTOP = KDE -# makefile (from 'Makefile', line 1) -MAKEFILE_LIST := Makefile -# automatic -@F = $(notdir $@) -# environment -VSCODE_VERBOSE_LOGGING = true -# environment -VSCODE_PID = 164826 -# environment -XDG_SESSION_TYPE = wayland -# automatic -?D = $(patsubst %/,%,$(dir $?)) -# environment -SESSION_MANAGER = local/ari-laptop:@/tmp/.ICE-unix/1646,unix/ari-laptop:/tmp/.ICE-unix/1646 -# automatic -*F = $(notdir $*) -# environment -CHROME_DESKTOP = code-url-handler.desktop -# environment -DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus -# automatic -