Skip to content

Commit

Permalink
Merge pull request #2 from heroesofcode/improvement/setup_pipeline
Browse files Browse the repository at this point in the history
Setup CI pipeline
  • Loading branch information
pedrohfp authored Jun 2, 2024
2 parents 5dc2e22 + 4145a18 commit 4143be4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
test_and_deploy:
name: "Validation"
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- name: Run Detekt
run: ./gradlew detekt

- name: Run Unit Tests
run: ./gradlew test

0 comments on commit 4143be4

Please sign in to comment.