Skip to content

Commit

Permalink
test with akka
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonydahanne committed Sep 20, 2023
1 parent 3995d1f commit 40ecb72
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test-pull-request-java-akka.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test Pull Request (Akka)

on:
merge_group:
pull_request:
branches:
- main
paths:
- java/akka/**

jobs:
smoke:
name: Smoke Tests
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.18.x

- name: Checkout
uses: actions/checkout@v4

- name: Test Java Samples
run: |
./scripts/smoke.sh --suite java/akka/smoke_test \
--builder paketobuildpacks/builder:full \
--builder paketobuildpacks/builder:base \
--builder paketobuildpacks/builder:tiny
12 changes: 10 additions & 2 deletions java/akka_test.go → java/akka/smoke_test/akka_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package java_test
package akka_test

import (
"flag"
"fmt"
"github.com/paketo-buildpacks/samples/tests"
"os"
"path/filepath"
"strings"
Expand All @@ -16,6 +18,12 @@ import (
. "github.com/paketo-buildpacks/occam/matchers"
)

var builders tests.BuilderFlags

func init() {
flag.Var(&builders, "name", "the name a builder to test with")
}

func TestAkka(t *testing.T) {
Expect := NewWithT(t).Expect

Expand Down Expand Up @@ -88,7 +96,7 @@ func testAkkaWithBuilder(builder string) func(*testing.T, spec.G, spec.S) {
}

var err error
source, err = occam.Source(filepath.Join("../java", "akka"))
source, err = occam.Source(filepath.Join("../../", "akka"))
Expect(err).NotTo(HaveOccurred())

var logs fmt.Stringer
Expand Down

0 comments on commit 40ecb72

Please sign in to comment.