Skip to content

Try and stabilize Reflect.scala sortInPlace #1

Try and stabilize Reflect.scala sortInPlace

Try and stabilize Reflect.scala sortInPlace #1

Workflow file for this run

on:
workflow_call:
inputs:
compileargs:
default: '__.compile'
type: string
prepareargs:
default: '__.test'
type: string
java-version:
default: '11'
type: string
os:
type: string
timeout-minutes:
default: 60
type: number
jobs:
run:
runs-on: ${{ inputs.os }}
timeout-minutes: ${{ inputs.timeout-minutes }}
steps:
- uses: actions/setup-java@v4
with:
java-version: ${{ inputs.java-version }}
distribution: temurin
# For normal PR jobs, just checkout the base_ref the PR is against
- uses: actions/checkout@v4

Check failure on line 30 in .github/workflows/pre-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pre-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
with: { ref: ${{ github.base_ref }} }
if: ${{ !(github.event_name == 'push' && github.repository != 'com-lihaoyi/mill') }}
# For fork push jobs, first checkout the version being pushed, then look for the
# merge-base where the current version forks off from the upstrema main
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
if: ${{ github.event_name == 'push' && github.repository != 'com-lihaoyi/mill' }}
- run: git fetch https://github.com/com-lihaoyi/mill main && git checkout $(git merge-base FETCH_HEAD HEAD)
if: ${{ github.event_name == 'push' && github.repository != 'com-lihaoyi/mill' }}
- run: echo temurin:${{ inputs.java-version }} > .mill-jvm-version
- run: chmod -R 777 . # normalize permissions before and after upload/download-artifact
- run: mkdir out && touch out/mill-selective-execution.json
shell: bash
- run: cat .mill-jvm-version
- run: ./mill -i -k selective.prepare ${{ inputs.prepareargs }}
if: ${{ (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'run-all-tests')) || github.repository != 'com-lihaoyi/mill' }}
- uses: actions/[email protected]
with:
path: out/mill-selective-execution.json
name: ${{ inputs.os }}-selective-execution-artifact
include-hidden-files: true
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- run: ./mill -i -k ${{ inputs.compileargs }}
- uses: actions/[email protected]
with:
path: .
name: ${{ inputs.os }}-artifact
include-hidden-files: true