Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonytech83/execute-test
Simple custom GitHub action for execution of Unit and UI tests.
https://github.com/tonytech83/execute-test
github-actions yml
Last synced: about 2 months ago
JSON representation
Simple custom GitHub action for execution of Unit and UI tests.
- Host: GitHub
- URL: https://github.com/tonytech83/execute-test
- Owner: tonytech83
- Created: 2024-06-27T12:21:48.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T10:03:11.000Z (6 months ago)
- Last Synced: 2024-10-14T22:41:27.457Z (3 months ago)
- Topics: github-actions, yml
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test action
This simple action for execution of `npm` tests with color output.## Input
### `test-name`
**Required** - The name of the test from `package.json`.## Example usege
```yml
---
name: Teston:
push:
branches: [ master ]
pull_request:
branches: [ master ]jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Install dependencies
run: npm install
- name: Install Playwright browsers
run: npx playwright install
- name: Start the application
run: npm start &
- name: Execute UI tests
uses: tonytech83/[email protected]
with:
test-name: test:ui
```