generated from tfandkusu/android_app_template
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.06 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: check
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: '11'
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- uses: gradle/gradle-build-action@v2
- run: cp gradle.properties.ci gradle.properties
- run: ./gradlew spotlessCheck
- run: bundle exec danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./gradlew jacocoReport
# Codecov
- run: curl -Os https://uploader.codecov.io/latest/linux/codecov
- run: chmod +x codecov
- run: ./codecov -t ${{ secrets.CODECOV_TOKEN }}
# Slack
- uses: tfandkusu/slack@v1
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
if: always()