Skip to content

Commit

Permalink
Set up testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrepta committed Feb 6, 2024
1 parent 1a5c732 commit d4c1ba8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Test PR'
on:
pull_request:
branches:
- 'master'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
name: 'Build And Test'
runs-on: [self-hosted, linux, normal]
steps:
- name: 'Check out code'
uses: actions/checkout@v3
with:
submodules: recursive
- name: 'Start Docker container'
run: |
COMMIT="$(cat deps/k_release)"
docker run --name gh-runner-ci --rm -it --detach --workdir /opt/workspace --user $(id -u):$(id -g) -v "$(pwd):/opt/workspace" -v "/etc/passwd:/etc/passwd:ro" -v "/etc/group:/etc/group:ro" runtimeverificationinc/kframework-k:ubuntu-jammy-${COMMIT}
- name: 'Start K Server'
run: docker exec --detach gh-runner-ci /bin/bash -c 'kserver'
- name: 'Test PL-Tutorial'
run: docker exec -t gh-runner-ci /bin/bash -c 'make -j4'
- name: 'Tear down Docker container'
if: always()
run: |
docker stop gh-runner-ci

0 comments on commit d4c1ba8

Please sign in to comment.