Skip to content

Commit

Permalink
feat: initialize project and add github actions
Browse files Browse the repository at this point in the history
初始化项目,添加 GitHub Actions
  • Loading branch information
yanglbme committed Jan 13, 2020
0 parents commit d95d5bf
Show file tree
Hide file tree
Showing 23 changed files with 1,262 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Java CI

on:
push:
branches:
- master

jobs:
test:
name: Algorithms Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: [1.8]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout project
uses: actions/checkout@v2
with:
ref: master
- name: Set up jdk
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: JUnit5 tests on ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: |
chmod +x gradlew
./gradlew clean test
- name: JUnit5 tests on macos
if: startsWith(matrix.os, 'macos')
run: |
chmod +x gradlew
./gradlew clean test
- name: JUnit5 tests on windows
if: startsWith(matrix.os, 'windows')
run: gradle clean test
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
##----------Android----------
# build
*.apk
*.ap_
*.dex
*.class
bin/
gen/
build/

# gradle
.gradle/
gradle-app.setting
!gradle-wrapper.jar
build/

local.properties

##----------idea----------
*.iml
.idea/
*.ipr
*.iws

# Android Studio Navigation editor temp files
.navigation/

##----------Other----------
# osx
*~
.DS_Store
gradle.properties

.vscode
Loading

0 comments on commit d95d5bf

Please sign in to comment.