Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration workflow #2

Merged
merged 3 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Copyright 2023 Loïc Lamarque. All rights reserved.

name: Integration
on:
pull_request:
branches: [ master, develop ]
paths:
- '**gradle*'
- '**.kt*'
- .github/workflows/integration.yml
push:
branches: [ master, develop ]
paths:
- '**gradle*'
- '**.kt*'
- .github/workflows/integration.yml
workflow_dispatch:
jobs:
# ---------- Stage 1 ----------
validate-wrapper:
name: Validate Gradle wrapper
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Validate Gradle wrapper
uses: gradle/[email protected]
# ---------- Stage 2 ----------
dependencies:
name: Submit dependencies to GitHub
needs: validate-wrapper
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Submit dependencies to GitHub
uses: mikepenz/[email protected]
with:
gradle-build-configuration: runtimeClasspath
fail-on-error: true
check:
name: Run checks
needs: validate-wrapper
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java & Gradle
uses: actions/[email protected]
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Run all checks
run: ./gradlew --no-daemon --quiet :check
Empty file modified gradlew
100644 → 100755
Empty file.