Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#174: add smoke tests #176

Merged
merged 7 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/issue-to-project.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: [DEPRECATED] Add issues to UTBot Site project

#on:
# issues:
# types:
# - opened
on:
issues:
types:
- opened

#jobs:
# add-to-project:
# name: Add issue to project
# runs-on: ubuntu-latest
# steps:
# - uses: actions/add-to-project@main
# with:
# project-url: https://github.com/orgs/UnitTestBot/projects/5
# github-token: ${{ secrets.COPY_ISSUE_TO_PROJECT }}
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/UnitTestBot/projects/5
github-token: ${{ secrets.COPY_ISSUE_TO_PROJECT }}
41 changes: 41 additions & 0 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Run smoke tests"

on:
# tmp
push:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:

env:
subpath: UTBotSiteTest

jobs:
run-tests:
name: "Run smoke tests"
runs-on: ubuntu-20.04
steps:
- name: Print environment variables
run: printenv

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

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17

- name: Run build
uses: gradle/[email protected]
with:
gradle-version: 7.4.2
arguments: test
build-root-directory: ${{ env.subpath }}

- name: Upload report
uses: actions/upload-artifact@v3
with:
name: Smoke tests report
path: ${{ env.subpath }}/build/reports/tests/