Skip to content

Commit

Permalink
test: add e2e build to ci
Browse files Browse the repository at this point in the history
Signed-off-by: Allain Magyar <allain.magyar@iohk.io>
  • Loading branch information
amagyar-iohk committed Apr 29, 2024
1 parent fbbdf5d commit facf338
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ defaults:
shell: bash

concurrency:
group: ${{ github.head_ref }}${{ github.ref }}
group: "${{ github.head_ref }}${{ github.ref }}"
cancel-in-progress: true

env:
JAVA_VERSION: 17
NODEJS_VERSION: 16.17.0
ATALA_GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
ATALA_GITHUB_ACTOR: ${{ secrets.GITHUB_TOKEN }}
ATALA_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

on:
push:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/e2e-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: End-to-end tests

concurrency:
group: ${{ github.head_ref }}${{ github.ref }}-e2e-build
cancel-in-progress: true

on:
pull_request:
branches:
- main

env:
JAVA_VERSION: 17
NODEJS_VERSION: 16.17.0
ATALA_GITHUB_ACTOR: ${{ secrets.GITHUB_TOKEN }}
ATALA_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
run-e2e-tests:
name: 'Build e2e tests'
runs-on: ubuntu-latest

steps:
- name: Install Java ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
java-version: "${{ env.JAVA_VERSION }}"
distribution: 'adopt'

- name: Checkout Code
uses: actions/checkout@v4

- name: Gradle Build Action
uses: gradle/gradle-build-action@v2

- name: Publish to maven local
run: ./gradlew publishToMavenLocal

- name: Run e2e build
working-directory: tests/end-to-end
run: ./gradlew testClasses

0 comments on commit facf338

Please sign in to comment.