-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
workflows, Utility class
and more files (#20)
Update `workflows, Utility class` and more files
- Loading branch information
Showing
11 changed files
with
192 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: TLighthouse | ||
|
||
on: | ||
pull_request: | ||
types: [synchronize, opened, reopened] | ||
push: | ||
branches: [main, development, dev-workflows] | ||
|
||
jobs: | ||
install-ubuntu: | ||
name: Install on Ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
install-macos: | ||
name: Install on MacOS | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
install-windows: | ||
name: Install on Windows | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
test: | ||
name: Test with Jest | ||
needs: [install-ubuntu, install-macos, install-windows] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Testing with Jest | ||
run: npm test | ||
|
||
running: | ||
name: Run with Node | ||
needs: test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Set up Chrome | ||
uses: browser-actions/setup-chrome@v1 | ||
|
||
- name: Running the program | ||
run: npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# TLighthouse - Lighthouse Accesibility Thesis | ||
|
||
This is a small program that I created to help me to gather Accessibility report from Google Lighthouse™ for my Bachelor's Thesis. | ||
|
||
## Requirement | ||
|
||
Before you can install this program, you need to make sure that you have the latest version of [Google Chrome](https://www.google.com/chrome/) this due to [Lighthouse-CLI]() only support the use of Chrome as the program to run the test. | ||
|
||
### Installation | ||
|
||
To use this program you just need to follow this steps: | ||
|
||
- `fork` this repo or `clone` this repo | ||
- move to the directory where this repo located on you local device, then do `npm install` to download all the dependecies | ||
- `npm run start` or `yarn start` to start initiate the program | ||
- you can then access newly created file on `src` named `urlList.class.js` and add the certain url of websites that you want to do test on. | ||
|
||
|
||
## Credits | ||
|
||
- [Google Lighthouse](https://github.com/GoogleChrome/lighthouse) (opensource - owned and trademarked by Google inc.) | ||
- [Lighthouse CLI](https://github.com/GoogleChrome/lighthouse) (opensource - owned and trademarked by Google inc.) | ||
- [Async](https://github.com/caolan/async) (opensource) | ||
|
||
### Supports | ||
|
||
[![EmptyWork](https://raw.githubusercontent.com/EmptyWork/cpp-teaching/master/assets/active.svg)](https://emptywork.netlify.app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { existsSync, rmSync } from 'fs' | ||
import { Logger, LoggerType } from "./src/lib/utilities.class.js" | ||
|
||
const cleanDirectory = () => { | ||
if (!existsSync('./out/')) return console.error(`failed: dir out not exist`) | ||
if (!existsSync('./out/')) return Logger(`\`./out\` not exist`, LoggerType.warning) | ||
rmSync('./out/', { recursive: true }) | ||
console.log(`complete: dir out has been deleted`) | ||
Logger(`\`./out\` has been deleted`, LoggerType.info) | ||
} | ||
|
||
cleanDirectory() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { existsSync, copyFileSync } from 'fs' | ||
import { copyIfNotExists } from "./src/lib/utilities.class.js"; | ||
|
||
if (!existsSync('./src/urlList.class.js')) copyFileSync('./src/urlList.class.example', './src/urlList.class.js') | ||
copyIfNotExists('./src/urlList.class.js', './src/urlList.class.example') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters