30 lines
660 B
YAML
30 lines
660 B
YAML
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
|
|
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
|
|
|
|
name: Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
QINIU_ACCESSKEY: ${{ secrets.QINIU_ACCESSKEY }}
|
|
QINIU_SECRETKEY: ${{ secrets.QINIU_SECRETKEY }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
|
|
- name: Test
|
|
run: mvn -B test --file pom.xml
|
|
|
|
|