summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils K <git@nkn-it.de>2021-11-25 21:54:37 +0100
committerNils K <git@nkn-it.de>2021-11-25 21:54:37 +0100
commit0baf1d03e9ff568652e62ecb881de3f7aba2f759 (patch)
tree942e9e28b448a5e9b9b02f51c40003ab565c6797
parente73d4d2d565480c3488c8b80a506c2cdd9be975e (diff)
new github action test
-rw-r--r--.github/workflows/demo_page.yml (renamed from .github/workflows/main.yml)0
-rw-r--r--.github/workflows/shellcheck.yml32
-rw-r--r--.github/workflows/ubuntu_2004.yml27
-rw-r--r--[-rwxr-xr-x]test.sh (renamed from tests.sh)0
4 files changed, 59 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/demo_page.yml
index 30cdc23..30cdc23 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/demo_page.yml
diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml
new file mode 100644
index 0000000..eab33b6
--- /dev/null
+++ b/.github/workflows/shellcheck.yml
@@ -0,0 +1,32 @@
+name: "ShellCheck"
+
+# Controls when the workflow will run
+on:
+ # Triggers the workflow on push or pull request events but only for the master branch
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "test"
+ shellcheck:
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ - name: Install dependencies 🔧
+ run: sudo apt-get install shellcheck
+
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - name: Checkout 🛎️
+ uses: actions/checkout@v2
+
+ # Run ShellCheck
+ - name: ShellCheck 🔎
+ run: shellcheck gallery.sh \ No newline at end of file
diff --git a/.github/workflows/ubuntu_2004.yml b/.github/workflows/ubuntu_2004.yml
new file mode 100644
index 0000000..14cc360
--- /dev/null
+++ b/.github/workflows/ubuntu_2004.yml
@@ -0,0 +1,27 @@
+name: "Ubuntu 20.04 LTS"
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+ workflow_dispatch:
+
+jobs:
+ ubuntu-2004:
+ name: Test Ubuntu 20.04 LTS
+ runs-on: ubuntu-20.04
+ steps:
+
+ - name: Dependencies 🔧
+ run: sudo apt-get install imagemagick jhead
+
+ - name: Checkout 🛎️
+ uses: actions/checkout@v2
+
+ - name: Get assert.sh 🎁
+ run: curl -f "https://raw.githubusercontent.com/lehmannro/assert.sh/v1.1/assert.sh" -o assert.sh
+
+ - name: Test 🛠️
+ run: bash test.sh \ No newline at end of file
diff --git a/tests.sh b/test.sh
index c33e947..c33e947 100755..100644
--- a/tests.sh
+++ b/test.sh