Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vinod812 committed Jul 17, 2024
1 parent 81ce563 commit c620f78
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Rest Assured Tests

on:
push:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven

- name: Install dependencies
run: mvn install --quiet --batch-mode --no-transfer-progress --projects your-project --also-make

- name: Run Rest Assured tests
run: mvn test --projects your-project --also-make

0 comments on commit c620f78

Please sign in to comment.