Feature tests as GitHub actions #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: RMT feature tests | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
feature-tests: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: /usr/src/rmt-server | |
container: | |
image: registry.opensuse.org/systemsmanagement/scc/containers/15.5/rmt-ci-container:latest | |
options: --user root | |
# services: | |
# mysql: | |
# image: mysql:5.7 | |
# env: | |
# MYSQL_DATABASE: rmt_features | |
# MYSQL_USER: rmt | |
# MYSQL_PASSWORD: rmt | |
# MYSQL_ROOT_PASSWORD: root | |
# ports: | |
# - 3306:3306 | |
# options: >- | |
# --health-cmd="mysqladmin ping" | |
# --health-interval=10s | |
# --health-timeout=5s | |
# --health-retries=3 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: copy checkout to /usr/src/rmt-server | |
run: | | |
cp -r $GITHUB_WORKSPACE/* /usr/src/rmt-server | |
- name: install depdendencies | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: build rpm | |
run: | | |
bash ci/rmt-build-rpm |