Skip to content

Bump actions/checkout from 4.1.3 to 4.1.5 #3822

Bump actions/checkout from 4.1.3 to 4.1.5

Bump actions/checkout from 4.1.3 to 4.1.5 #3822

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.5
- name: Setup Java ${{ matrix.jdk-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Python modules
run: |
python -m pip install --upgrade pip
if [ -f scripts/requirements.txt ]; then pip install -r scripts/requirements.txt; fi
- uses: actions/cache@v4.0.2
id: gradle-wrapper-cache
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }}
restore-keys: ${{ runner.os }}-gradlewrapper-
- name: Cache Gradle packages
uses: actions/cache@v4.0.2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Maven cache
uses: actions/cache@v4.0.2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Check
run: |
./gradlew --info --no-watch-fs check
- name: Publish Locally
run: |
./gradlew --info --no-watch-fs publishToMavenLocal --warning-mode all
- name: Clone dgs-examples-java
uses: actions/checkout@v4.1.5
with:
repository: Netflix/dgs-examples-java
path: build/examples/dgs-examples-java
- name: Clone dgs-examples-kotlin
uses: actions/checkout@v4.1.5
with:
repository: Netflix/dgs-examples-kotlin
path: build/examples/dgs-examples-kotlin
- name: Build Examples
run: |
find /home/runner/.m2/repository/ -type f -name "*graphql-dgs-codegen-gradle*"
./scripts/test-examples.py -v -k --path=./build/examples
- name: Upload JUnit Tests
uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results
path: '**/test-results/**/*.xml'