Skip to content

Commit

Permalink
custom github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ennorehling committed Apr 12, 2022
1 parent 91a18f2 commit 478c4b1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ indent_size = 2
indent_style = tab

# Matches exact files
[.travis.yml]
[*.yml]
indent_style = space
indent_size = 2

Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,28 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: debian-buster

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Update APT
run: sudo apt update
- name: Install dependencies
run: sudo apt install libexpat1-dev libtolua-dev libncurses5-dev libsqlite3-dev libiniparser-dev libcjson-dev libbsd-dev cppcheck shellcheck luarocks clang-tools
- name: Run .travis.yml build script
uses: ktomk/run-travis-yml@v1
run: sudo apt install libexpat1-dev libtolua-dev libncurses5-dev libsqlite3-dev libiniparser-dev libcjson-dev libbsd-dev cppcheck shellcheck luarocks clang-tools iwyu
- name: Run CTest
uses: HorstBaerbel/action-ctest@1.1
with:
file: .travis.yml
steps: |
install
script
allow-failure: false
sourcedir: '.'
builddir: build
cmakeoptions: '--config Debug'
ctestoptions: ''
test:
needs: build
steps:
- working-directory: tests
- run: ../build/eressea/eressea -v1 ../scripts/run-tests.lua
- run: ../build/eressea/eressea -v1 ../scripts/run-tests-e2.lua
- run: ../build/eressea/eressea -v1 ../scripts/run-tests-e3.lua

0 comments on commit 478c4b1

Please sign in to comment.