Skip to content

Commit 22f1670

Browse files
author
Nicholas Smith
committed
#38 Add build workflow
1 parent 43395cb commit 22f1670

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/maven-package.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+
name: Java CI
5+
6+
on: [push]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: '17'
18+
distribution: 'temurin'
19+
- name: Build with Maven
20+
run: mvn --batch-mode --update-snapshots package

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# JavaParser:Visited
22

3-
[![Build Status](https://travis-ci.org/javaparser/javaparser-visited.svg?branch=master)](https://travis-ci.org/javaparser/javaparser-visited)
3+
![build status](https://github.com/javaparser/javaparser-visited/actions/workflows/maven-package.yml/badge.svg?branch=master)
44

55
This project contains code samples for the JavaParser book on [LeanPub.com](https://leanpub.com/javaparservisited/overview)
66

0 commit comments

Comments
 (0)