mirror of
https://github.com/accelforce/Yuito
synced 2024-12-22 21:28:08 +01:00
Experiment with linting and testing using Github actions (#3728)
Create an action that lints, tests, and builds the green debug variant.
This commit is contained in:
parent
bfc84e4b85
commit
0a1be7df06
39
.github/workflows/ci.yml
vendored
Normal file
39
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '11'
|
||||||
|
distribution: 'temurin'
|
||||||
|
|
||||||
|
- name: Gradle Wrapper Validation
|
||||||
|
uses: gradle/wrapper-validation-action@v1
|
||||||
|
|
||||||
|
- name: Gradle Build Action
|
||||||
|
uses: gradle/gradle-build-action@v2
|
||||||
|
|
||||||
|
- name: ktlint
|
||||||
|
run: ./gradlew clean ktlintCheck
|
||||||
|
|
||||||
|
- name: Regular lint
|
||||||
|
run: ./gradlew lintGreenDebug
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: ./gradlew app:testGreenDebugUnitTest
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: ./gradlew app:greenDebug
|
Loading…
Reference in New Issue
Block a user