Skip to content

Commit

Permalink
ci: squat with nyx and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Prototik committed Jan 9, 2024
1 parent 9d44ffc commit bf727fd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,33 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version-file: .java-version
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
- name: Cache build files
uses: actions/cache@v3
with:
path: '**/build/'
key: pipeline-${{ github.run_id }}-gradle-build-cache
- name: Init with Gradle
run: ./gradlew nyxInfer --stacktrace
- name: Load Nyx data
id: nyx
uses: mooltiverse/nyx-github-action@main
with:
command: infer
resume: false
resume: true
- name: Archive Nyx state file
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: .nyx-state-${{ github.job }}.json
name: .nyx-state.json
path: build/.nyx-state.json
build:
name: Build & Unit tests
Expand Down
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ rootProject.name = "cursedpublish"
include(":testlib")

extensions.configure<NyxExtension>("nyx") {
configurationFile = ".nyx.yml"
resume = System.getenv("NYX_RESUME") == "true"
}

Expand Down

0 comments on commit bf727fd

Please sign in to comment.