Skip to content

ci: run the checks on every branch #167

ci: run the checks on every branch

ci: run the checks on every branch #167

Workflow file for this run

on:
push:
branches:
- '**'
pull_request:
workflow_call:
inputs:
ref:
description: Ref of this repository to build.
required: false
type: string
default: main
name: CI
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
repository: vrchatapi/vrchatapi-java
ref: ${{ inputs.ref || github.ref }}
- uses: vrchatapi/specification/.github/actions/setup-generator@ci/modernise-actions
- uses: vrchatapi/specification/.github/actions/download@ci/modernise-actions
with:
bundle: openapi-legacy.yaml
- run: bash ./generate.sh openapi-legacy.yaml
- uses: actions/upload-artifact@v7
with:
name: generated-java
path: .
include-hidden-files: true
test:
needs: generate
runs-on: ubuntu-latest
strategy:
matrix:
java: ['17', '21']
steps:
- uses: actions/download-artifact@v8
with:
name: generated-java
- uses: actions/setup-java@v5.7.0
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: maven
- run: mvn -B package --no-transfer-progress