Skip to content

Commit

Permalink
[FiO72wgR] Remove old github actions (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
gem-neo4j authored Jul 29, 2024
1 parent 9caabb4 commit bd82880
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 82 deletions.
27 changes: 0 additions & 27 deletions .github/actions/test-gradle-project/action.yaml

This file was deleted.

57 changes: 2 additions & 55 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: ./.github/actions/setup-jdk
- uses: ./.github/actions/setup-gradle-cache
- name: Compile
run: ./gradlew compileJava compileTestJava
run: ./gradlew compileJava

snyk-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -63,57 +63,4 @@ jobs:
- name: Compile
run: ./gradlew compileJava compileTestJava
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

format-checks:
runs-on: ubuntu-latest
needs: compile

steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-jdk
- uses: ./.github/actions/setup-gradle-cache
- name: Check all the files are properly formatted
run: ./gradlew spotlessCheck

license-checks:
runs-on: ubuntu-latest
needs: compile

steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-jdk
- uses: ./.github/actions/setup-gradle-cache
- name: Check LICENSE and NOTICE files
run: ./gradlew validateLicenses generateLicensesFiles

tests:
strategy:
fail-fast: false
matrix:
project: ['common', 'core', 'processor', 'test-utils', 'it']
java-version: ['17', '21']
env:
DOCKER_ENTERPRISE_DEV_URL: ${{ secrets.DOCKER_ENTERPRISE_DEV_URL }}
DOCKER_COMMUNITY_DEV_URL: ${{ secrets.DOCKER_COMMUNITY_DEV_URL }}
ENTERPRISE_TAR: enterprise-docker.tar
COMMUNITY_TAR: community-docker.tar

runs-on: ubuntu-latest
needs: compile
steps:
- uses: actions/checkout@v3
- name: Download neo4j dev docker container
if: matrix.project == 'it'
run: |
curl -s -L0 -u "${TEAMCITY_USER}:${TEAMCITY_PASSWORD}" -X GET ${DOCKER_ENTERPRISE_DEV_URL} -o ${ENTERPRISE_TAR} &
curl -s -L0 -u "${TEAMCITY_USER}:${TEAMCITY_PASSWORD}" -X GET ${DOCKER_COMMUNITY_DEV_URL} -o ${COMMUNITY_TAR} &
wait
docker load --input ${ENTERPRISE_TAR}
docker load --input ${COMMUNITY_TAR}
- name: Run ${{ matrix.project }} tests with JDK ${{ matrix.java-version }}
uses: ./.github/actions/test-gradle-project
with:
project-name: ${{ matrix.project }}
java-version: ${{ matrix.java-version }}
uses: github/codeql-action/analyze@v2

0 comments on commit bd82880

Please sign in to comment.