This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
[chore] Update actions/cache to v4 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SQL Extraction | |
on: | |
push: | |
paths: | |
- 'tools/sql_extraction/**' | |
- '.github/workflows/sql-extraction.yml' | |
pull_request: | |
paths: | |
- 'tools/sql_extraction/**' | |
- '.github/workflows/sql-extraction.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: tools/sql_extraction | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Cache Gradle packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-sql-extraction-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-sql-extraction-gradle | |
- name: Test with Gradle | |
run: ./gradlew test | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: tools/sql_extraction/build/distributions/* |