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

Create test.yml #12

Merged
merged 11 commits into from
Feb 18, 2025
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Tests for PRs

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name : Install Xvfb
run: sudo apt-get install -y xvfb

- name: Install dependencies
run: cd ui && npm install && cd ../ && npm install

- name: Run integration tests
run: Xvfb -ac :99 -screen 0 1280x1024x16 & export DISPLAY=:99 && npm run test


- name: Run Angular tests
run: export DISPLAY=:99 && npm run test:ng:ci
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Identify and resolve Trusted Types violations easily!",
"version": "1.0",
"icons": {
"16": "t16.png",
"48": "t48.png",
"128": "t128.png"
"16": "images/t16.png",
"48": "images/t48.png",
"128": "images/t128.png"
},
"action": {
"default_popup": "popup.html"
Expand Down
Loading