Skip to content

Update github workflows #1

Update github workflows

Update github workflows #1

Workflow file for this run

name: Pull Request CI
on:
push:
branches: [ "main" ]
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/[email protected] 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 }}
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6