Skip to content

ci: fixed jdk distribution #2

ci: fixed jdk distribution

ci: fixed jdk distribution #2

name: run rest-assured api tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
builds:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository # Cache the Maven repository
key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }} # Cache key based on the OS and project files
restore-keys: |
maven-${{ runner.os }}-
- name: Run Tests
run: mvn clean test