Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Manik2708 authored Jun 2, 2024
1 parent d084874 commit a87258b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test Application

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]


steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Testing Enviornment
run: |
chmod +x docker_compose_up.sh
./docker_compose_up.sh
working-directory: scripts
- name: Install dependencies
run: npm install
- name: Sleep for 10s
uses: juliangruber/sleep-action@v2
with:
time: 10s
- name: Run tests
run: npm run test:e2e
- name: Remove Testing Enviornment
- run: |
chmod +x docker_compose_down.sh
./docker_compose_down.sh

0 comments on commit a87258b

Please sign in to comment.