Skip to content

Commit

Permalink
Create login-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SethDVS authored Nov 11, 2024
1 parent eb277a0 commit d7d6905
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/login-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# File: .github/workflows/login-test.yml
name: Login Component Tests

on:
push:
branches:
- '**' # Runs on any branch push

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install dependencies
working-directory: ./Frontend # Navigate to Frontend directory to install dependencies
run: npm install

- name: Run tests
working-directory: ./Frontend # Ensure tests run in the Frontend directory
run: npm test -- --testPathPattern=src/Login.test.js # Specify Login.test.js to run only this test

- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: test-results
path: ./Frontend/test-results # Adjust path if test results are stored here

0 comments on commit d7d6905

Please sign in to comment.