Skip to content

Commit

Permalink
Merge pull request #122 from amosproj/develop
Browse files Browse the repository at this point in the history
sprint-release-7
  • Loading branch information
xilef45 authored Dec 7, 2022
2 parents 8fbdf55 + 2be6356 commit 4ffe5c8
Show file tree
Hide file tree
Showing 59 changed files with 3,037 additions and 616 deletions.
20 changes: 18 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,24 @@ ARG NODE_VERSION="lts/*"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
libgtk2.0-0 \
libgtk-3-0 \
libgbm-dev \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
libxtst6 xauth xvfb
## Try to support webkit
# # librust-gobject-sys-dev \
# # libgstreamer1.0-dev \
# # libopengl-dev \
# webkit2gtk-driver \
# libevent-dev \
# libjpeg-dev \

# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"esbenp.prettier-vscode",
"eamodio.gitlens",
"bradlc.vscode-tailwindcss",
"ms-vscode.vscode-typescript"
"ms-vscode.vscode-typescript",
"ms-playwright.playwright"
]
}
},
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,28 @@ jobs:
with:
dotnet-version: 6.0.x

- name: List files
run: ls -las
- name: Install pycorbura
run: pip install pycobertura

- name: Remove untestable files
run: |
rm -rf ../Deskstar/Migrations \
&& rm -rf ../Deskstar/Controllers
- name: Restore dependencies
run: dotnet restore && dotnet restore
run: dotnet restore

- name: Build
run: dotnet build --no-restore

- name: Test
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --logger trx --results-directory coverage

- name: Copy Coverage to Predictable Location
run: cp coverage/*/coverage.cobertura.xml coverage/coverage.cobertura.xml

- name: Code Coverage Summary Report
uses: irongut/[email protected]
with:
filename: ./src/deskstar-backend/Teststar.Tests/coverage/coverage.cobertura.xml
badge: true
format: 'markdown'
output: 'both'
- name: Run pycobertura on coverage.corbertura.xml
run: pycobertura show coverage/coverage.cobertura.xml

- name: Upload coverage output to artifacts
uses: actions/upload-artifact@v3
Expand Down
49 changes: 32 additions & 17 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,35 @@ jobs:
working-directory: ./src/deskstar-frontend

steps:
- uses: actions/checkout@v3

- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: '16.16.0'
cache: 'yarn'
cache-dependency-path: './src/deskstar-frontend/yarn.lock'

- name: Install dependencies
run: yarn install

- name: Build Next.js app
run: yarn build

# - name: Test Next App
# run: yarn test
- uses: actions/checkout@v3

- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: "16.16.0"
cache: "yarn"
cache-dependency-path: "./src/deskstar-frontend/yarn.lock"

- name: Install dependencies
run: yarn install

- name: Build Next.js app
run: yarn build

test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/deskstar-frontend
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3

- name: Install dependencies
run: yarn install

- name: Install playwright browsers
run: yarn run playwright install --with-deps

- name: Test Next App
run: yarn test --reporter github
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ bin/
.DS_Store
src/deskstar-backend/DeskstarSolution.sln.DotSettings.user
*.cs~
src/deskstar-backend/Deskstar/out/
Binary file added Deliverables/sprint-07/feature-board.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Deliverables/sprint-07/planning-documents.pdf
Binary file not shown.
Loading

0 comments on commit 4ffe5c8

Please sign in to comment.