Skip to content

Commit d95d5bf

Browse files
committed
feat: initialize project and add github actions
初始化项目,添加 GitHub Actions
0 parents  commit d95d5bf

23 files changed

+1262
-0
lines changed

.github/workflows/gradle.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
name: Algorithms Test
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest, windows-latest]
14+
java-version: [1.8]
15+
runs-on: ${{ matrix.os }}
16+
17+
steps:
18+
- name: Checkout project
19+
uses: actions/checkout@v2
20+
with:
21+
ref: master
22+
- name: Set up jdk
23+
uses: actions/setup-java@v1
24+
with:
25+
java-version: ${{ matrix.java-version }}
26+
- name: JUnit5 tests on ubuntu
27+
if: startsWith(matrix.os, 'ubuntu')
28+
run: |
29+
chmod +x gradlew
30+
./gradlew clean test
31+
- name: JUnit5 tests on macos
32+
if: startsWith(matrix.os, 'macos')
33+
run: |
34+
chmod +x gradlew
35+
./gradlew clean test
36+
- name: JUnit5 tests on windows
37+
if: startsWith(matrix.os, 'windows')
38+
run: gradle clean test

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
##----------Android----------
2+
# build
3+
*.apk
4+
*.ap_
5+
*.dex
6+
*.class
7+
bin/
8+
gen/
9+
build/
10+
11+
# gradle
12+
.gradle/
13+
gradle-app.setting
14+
!gradle-wrapper.jar
15+
build/
16+
17+
local.properties
18+
19+
##----------idea----------
20+
*.iml
21+
.idea/
22+
*.ipr
23+
*.iws
24+
25+
# Android Studio Navigation editor temp files
26+
.navigation/
27+
28+
##----------Other----------
29+
# osx
30+
*~
31+
.DS_Store
32+
gradle.properties
33+
34+
.vscode

0 commit comments

Comments
 (0)