Skip to content

Commit

Permalink
chore: split unit eval repo
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jan 1, 2024
1 parent eb0516a commit 3e485c8
Show file tree
Hide file tree
Showing 18 changed files with 1,058 additions and 48 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/resources/**/*.java linguist-vendored
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Dependabot configuration:
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# Maintain dependencies for Gradle dependencies
- package-ecosystem: "gradle"
directory: "/"
target-branch: "next"
schedule:
interval: "daily"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "next"
schedule:
interval: "daily"
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on: [ push ]

jobs:
build:
strategy:
matrix:
# os: [ macos-latest, ubuntu-latest, windows-latest ]
# Windows offers timeouts: https://github.com/unit-mesh/unit-eval/actions/runs/7101623294/job/19331414199
os: [ macos-latest, ubuntu-latest ]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 10
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2.8.0
with:
arguments: build

- name: Execute Gradle build
run: ./gradlew build

- name: Execute Gradle Coverage
run: ./gradlew check

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
assets:
- unit-eval/build/libs/unit-eval-*-all.jar

permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 10
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'


- name: Setup Gradle
run: ./gradlew build --no-daemon -x test

- name: Upload assets to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.assets }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true

47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
.idea
datasets
prompt-log-*.txt
prompt-evaluate-*.txt
processor.yml
Loading

0 comments on commit 3e485c8

Please sign in to comment.