Skip to content

Commit

Permalink
add test for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesward committed Jul 22, 2024
1 parent e1657fc commit 9885e01
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// pkl eval --format yaml -o test.yml test.pkl

amends "package://pkg.pkl-lang.org/github.com/jamesward/pklgha/[email protected]#/GitHubAction.pkl"
import "package://pkg.pkl-lang.org/github.com/jamesward/pklgha/[email protected]#/GitHubAction.pkl"

on {
pull_request {

}
}

jobs {
["test"] = new {
`runs-on` = "ubuntu-latest"

steps = GitHubAction.Scala.sbtTestSteps(null, null, null)
}
}
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated file. DO NOT EDIT.
'on':
pull_request: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '20'
cache: sbt
- run: sbt test

0 comments on commit 9885e01

Please sign in to comment.