-
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.
- Loading branch information
Showing
6 changed files
with
99 additions
and
43 deletions.
There are no files selected for viewing
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 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 |
---|---|---|
@@ -1,3 +1,86 @@ | ||
#when user create a new users( jun kura test garney), | ||
# aru Given test | ||
#donot include the multiple data in data tables like admin tables | ||
#donot include the multiple data in data tables like admin tables | ||
|
||
# notes about the github actions tools | ||
|
||
name: Main Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run-e2e-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo code | ||
uses: actions/checkout@v3 | ||
|
||
- name: set up node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: set up go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
|
||
- name: set up the file application | ||
run: | | ||
git clone https://github.com/Grisha596/filebrowser.git | ||
cd filebrowser/frontend | ||
npm install | ||
npm run build | ||
cd .. | ||
go mod download | ||
go run main.go & | ||
|
||
- name: wait file browser | ||
run: | | ||
sudo apt-get install wait-for-it -y | ||
wait-for-it -h localhost -p 8080 -t 10 | ||
|
||
- name: install dependencies | ||
run: | | ||
npm install | ||
|
||
- name: run web-ui tests | ||
run: | | ||
npx playwright install | ||
npm run test:e2e **/tests | ||
|
||
# GitHub Actions workflow defined here named "Main Workflow." This workflow is triggered on pushes and pull requests to the master branch. Here's a breakdown of what this workflow does: | ||
# Checkout repo code: | ||
|
||
|
||
# Uses the actions/checkout action to fetch the repository's codebase. | ||
# Set up Node.js: | ||
|
||
# Uses the actions/setup-node action to set up Node.js version 16.x. | ||
# Set up Go programming language: | ||
|
||
# Uses the actions/setup-go action to set up Go version 1.20. | ||
# Set up the file application: | ||
|
||
# Clones the filebrowser repository from GitHub. | ||
# Navigates to the filebrowser/frontend directory. | ||
# Installs npm dependencies and builds the frontend. | ||
# Goes back to the root directory and downloads Go modules. | ||
# Runs the main Go application (main.go). | ||
# Wait for file browser: | ||
|
||
# Installs the wait-for-it utility via apt-get. | ||
# Waits for the file browser application to be available at localhost:8080 for a maximum of 10 seconds. | ||
# Install dependencies: | ||
|
||
# Installs npm dependencies again. | ||
# Run web UI tests: | ||
|
||
# Installs Playwright using npx playwright install. | ||
# Runs end-to-end tests located in the tests directory using npm run test:e2e. |
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