Skip to content

Commit

Permalink
Adjust GitHub Actions for Pull Requests
Browse files Browse the repository at this point in the history
  • Loading branch information
oxzi committed Aug 28, 2021
1 parent cc8423e commit a75017b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: shellcheck

on: push
on: [push, pull_request]

jobs:
build:
shellcheck:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
submodules: recursive

- name: Shellcheck pimod.sh
run: shellcheck -x pimod.sh

- name: Shellcheck modules/*.sh
run: cd modules && shellcheck -x *.sh

- name: Shellcheck stages/*.sh
run: cd stages && shellcheck -x *.sh
25 changes: 22 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
name: tests
on: push

on: [push, pull_request]

jobs:
build:
test-local:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y binfmt-support file kpartx parted qemu qemu-user-static unzip p7zip-full wget xz-utils
shell: bash

- name: Run pimod OpenWRT example
run: sudo ./pimod.sh examples/RPi-OpenWRT.Pifile

test-action:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive

- name: Run pimod OpenWRT example
uses: Nature40/pimod@HEAD
with:
Expand Down

0 comments on commit a75017b

Please sign in to comment.