Skip to content

Commit

Permalink
Add Github Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 14, 2024
1 parent 06cbc05 commit 2bb8c3c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test installer

on:
push:
paths:
- '*.sh'
- 'lua/**'
- 'smax-scripts.service'
- '.github/workflows/test.yml'

jobs:

test:
name: Test on Ubuntu

runs-on: ubuntu-latest
steps:
- name: install redis
run: sudo apt-get install redis

- name: Check out smax-server
uses: actions/checkout@v4

- name: Run installer
run: sudo ./install.sh

2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [ "$DESTDIR" == "" ] ; then
fi

# Create /usr/share/smax and its lua/ sub-directory
SMAX="$(DESTDIR)/share/smax"
SMAX="$DESTDIR/share/smax"

# Copy LUA script over to /usr/share/smax
mkdir -p $SMAX/lua || exit 1
Expand Down

0 comments on commit 2bb8c3c

Please sign in to comment.