Skip to content

Commit 0c0c28e

Browse files
committed
update: add .github
1 parent 5661cca commit 0c0c28e

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: amirisback
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: amirisback
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: https://saweria.co/amirisback

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
env:
4+
# The name of the main module repository
5+
main_project_module: app
6+
7+
on:
8+
# Triggers the workflow on push or pull request events but only for default and protected branches
9+
push:
10+
branches: [ master ]
11+
pull_request:
12+
branches: [ master ]
13+
14+
workflow_dispatch:
15+
# The workflow will be dispatched to the default queue
16+
17+
jobs:
18+
build:
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
# Set Current Date As Env Variable
26+
- name: Set current date as env variable
27+
run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
28+
29+
# Set Repository Name As Env Variable
30+
- name: Set repository name as env variable
31+
run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
32+
33+
- name: Set Up JDK
34+
uses: actions/setup-java@v3
35+
with:
36+
distribution: 'zulu' # See 'Supported distributions' for available options
37+
java-version: '17'
38+
cache: 'gradle'
39+
40+
- name: Change wrapper permissions
41+
run: chmod +x ./gradlew
42+
43+
# Run Tests Build
44+
- name: Run gradle tests
45+
run: ./gradlew test
46+
47+
# Run Build Project
48+
- name: Build gradle project
49+
run: ./gradlew build

0 commit comments

Comments
 (0)