Skip to content

Commit

Permalink
Try running a custom GitHub action from the same repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Nov 3, 2023
1 parent 3fec31a commit 754f4d5
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 19 deletions.
16 changes: 0 additions & 16 deletions .github/actions/prepare-worker/action.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/new-smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Smoke Tests [New]

on:
push:
branches:
- '**'

permissions:
contents: read
checks: write

jobs:
smoke-tests:
name: Smoke Tests
runs-on: self-hosted
steps:
- uses: touchlab/SKIE@tk/smoke-tests

6 changes: 3 additions & 3 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Smoke Tests

on:
push:
branches:
- '**'
# push:
# branches:
# - '**'
pull_request_target:
branches:
- main
Expand Down
36 changes: 36 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Prepare Job Worker
description: Prepares a job worker for running Gradle tasks on SKIE project

runs:
using: composite
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
env:
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: 'true'
with:
cache-disabled: true
- name: Run Acceptance Tests
uses: gradle/gradle-build-action@v2
with:
arguments: ':acceptance-tests:functional__kgp_latestTest'
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: ${{ failure() || success() }}
with:
check_name: "Smoke Test Reports - Functional Tests"
report_paths: 'SKIE/acceptance-tests/build/test-results/functional__*/TEST-*.xml'
require_tests: true

0 comments on commit 754f4d5

Please sign in to comment.