Skip to content

Commit 04fdf3a

Browse files
committed
chore: add github actions ci.yaml
1 parent f8dfcda commit 04fdf3a

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Quickstart for GitHub Actions
2+
# https://docs.github.com/en/actions/quickstart
3+
4+
name: CI
5+
on: [ push, pull_request ]
6+
jobs:
7+
test:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ ubuntu-latest, windows-latest ]
12+
java: [ 8, 11, 16, 17 ]
13+
fail-fast: false
14+
max-parallel: 32
15+
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-java@v3
20+
with:
21+
java-version: ${{ matrix.java }}
22+
distribution: 'zulu'
23+
cache: 'maven'
24+
- name: Build with Maven
25+
run: mvn -V -B package

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# <div align="center"><a href="#dummy"><img src="docs/logo-red.png" alt="🌏 Java Dns Cache Manipulator(DCM)"></a></div>
22

33
<p align="center">
4-
<a href="https://ci.appveyor.com/project/oldratlee/java-dns-cache-manipulator"><img src="https://img.shields.io/appveyor/ci/oldratlee/java-dns-cache-manipulator/main?logo=appveyor&logoColor=white" alt="Build Status"></a>
4+
<a href="https://github.com/alibaba/java-dns-cache-manipulator/actions/workflows/ci.yaml"><img src="https://img.shields.io/github/workflow/status/alibaba/java-dns-cache-manipulator/CI/main?logo=github&logoColor=white" alt="Github Workflow Build Status"></a>
5+
<a href="https://ci.appveyor.com/project/oldratlee/java-dns-cache-manipulator"><img src="https://img.shields.io/appveyor/ci/oldratlee/java-dns-cache-manipulator/main?logo=appveyor&logoColor=white" alt="Appveyor Build Status"></a>
56
<a href="https://coveralls.io/github/alibaba/java-dns-cache-manipulator?branch=main"><img src="https://img.shields.io/coveralls/github/alibaba/java-dns-cache-manipulator/main?logo=coveralls&logoColor=white" alt="Coveralls branch"></a>
67
<a href="https://codeclimate.com/github/alibaba/java-dns-cache-manipulator"><img src="https://img.shields.io/codeclimate/maintainability/alibaba/java-dns-cache-manipulator?logo=code-climate" alt="Maintainability"></a>
78
<a href="https://openjdk.java.net/"><img src="https://img.shields.io/badge/Java-8+-green?logo=java&logoColor=white" alt="Java support"></a>

0 commit comments

Comments
 (0)