Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfrederico committed Jan 26, 2024
1 parent 5919279 commit ae5215e
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build

on:
push:
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
- 'README.md'
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/loom-cache
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-
- name: Checkout repository
uses: actions/checkout@v2

- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17

- name: Ensure gradlew is executable
run: chmod +x ./gradlew

- name: Validate the gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Build
run: ./gradlew build

- name: Upload Results
uses: actions/upload-artifact@v2
with:
name: results
path: ./

0 comments on commit ae5215e

Please sign in to comment.