Skip to content

Commit

Permalink
run tests via Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
coiby committed Apr 20, 2022
1 parent 628874d commit 7dbfda5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Integration Test

on:
pull_request:
branches: [ github_action ]

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 45
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }}
cancel-in-progress: true
strategy:
matrix:
container: [
"fedora:35",
]
fail-fast: false
container:
image: ghcr.io/coiby/${{ matrix.container }}
options: "--privileged -v /dev:/dev -v /lib/modules:/lib/modules:ro"
steps:
- name: "Checkout Repository"
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: "${{ matrix.container }} kdump tests"
run: ./tools/test-github.sh
10 changes: 10 additions & 0 deletions tools/test-github.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -ex

[[ -d ${0%/*} ]] && cd "${0%/*}"/../

source /etc/os-release

cd tests

RELEASE=$VERSION_ID make test-run

0 comments on commit 7dbfda5

Please sign in to comment.