You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
984 B
35 lines
984 B
name: Pull Request CI
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
cache: 'maven'
|
|
- name: Setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16'
|
|
cache: 'yarn'
|
|
- name: Setup semantic-release
|
|
run: |
|
|
yarn global add @conveyal/maven-semantic-release@v4.5.0 semantic-release@15
|
|
echo "$(yarn global bin)" >> $GITHUB_PATH
|
|
- name: Build with Maven
|
|
run: mvn -B package
|
|
- name: Dry Release
|
|
# maven-semantic-release requires "maven-settings.xml" in the workspace directory
|
|
run: |
|
|
mv ~/.m2/settings.xml maven-settings.xml
|
|
semantic-release --dry-run --branch master --use-conveyal-workflow --skip-maven-deploy
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|