Skip to content

Commit

Permalink
Merge branch 'main' into tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbmsr committed Mar 7, 2023
2 parents 957be41 + 29f5990 commit af5c048
Show file tree
Hide file tree
Showing 5 changed files with 464 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
/test-results/
/playwright-report/
/playwright/.cache/

50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: JobSimulator.dev Test Checker

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
test:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.31.0-focal
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci && cd .github/workflows && npm ci && cd ../..

- name: start frontend
run: npm run dev:frontend &

- name: start backend
run: npm run dev:backend > /logs.txt &

- name: Run Tests
run: node .github/workflows/test.js

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: logs
path: /logs.txt

- name: Upload screenshot
if: failure()
uses: actions/upload-artifact@v3
with:
name: screenshot
path: /test.png
169 changes: 169 additions & 0 deletions .github/workflows/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .github/workflows/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "module",
"devDependencies": {
"playwright": "^1.31.1",
"uvu": "^0.5.6"
},
"scripts": {}
}
Loading

0 comments on commit af5c048

Please sign in to comment.