Skip to content

Commit

Permalink
Add new workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 committed Nov 22, 2021
1 parent 8cbd97a commit 74dcac5
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/android-spotless.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run spotless check

on:
push:
branches: [ develop ]
pull_request:
branches:
- develop

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run spotless check
run: ./gradlew library:spotlessCheck
26 changes: 26 additions & 0 deletions .github/workflows/android-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run unit tests

on:
push:
branches: [ develop ]
pull_request:
branches:
- develop

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run tests
run: ./gradlew library:test
29 changes: 29 additions & 0 deletions .github/workflows/gradle-dokka.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: dokka-html

on:
push:
branches: [ develop ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate docs with dokka
run: ./gradlew dokkaHtml

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: docs # The branch the action should deploy to.
folder: library/build/docs/dokka # The folder the action should deploy.
22 changes: 22 additions & 0 deletions .github/workflows/release-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release builder

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Fetch tags
run: git fetch --tags --force
- uses: ericcornelissen/git-tag-annotation-action@v1
id: tag_data
- uses: marvinpinto/action-automatic-releases@latest
with:
title: "${{ steps.tag_data.outputs.git-tag-annotation }}"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false

0 comments on commit 74dcac5

Please sign in to comment.