Skip to content

Create pass to use ai to generate behavior code #1451

Create pass to use ai to generate behavior code

Create pass to use ai to generate behavior code #1451

Workflow file for this run

name: Scala Build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths-ignore:
- 'doc/src/main/hugo/**'
- '.github/workflows/gh-pages.yml'
jobs:
build:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set Up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt-hotspot'
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Coursier Caching
uses: coursier/cache-action@v6
- name: Build, Run Test, Coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}
RIDDLC_PATH: riddlc/target/universal/stage/bin/riddlc
run: |
sbt -v clean coverage Test/compile test coverageAggregate coveralls
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: |
- **/target/scala-3.4.1/scoverage-report/scoverage.xml
- sbt-riddl/target/scala-2.12/scoverage-report/scoverage.xml
- name: Test sbt-riddl plugin
run: |
export RIDDLC_PATH=riddlc/target/universal/stage/bin/riddlc
sbt -v clean compile publishLocal "project riddlc" "stage" "project sbt-riddl" scripted
- name: Cleanup Before Caching
shell: bash
run: |
rm -rf "$HOME/.ivy2/local" || true
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt -name "*.lock" -delete || true