Skip to content

Commit

Permalink
ci: Update Github workflows & add Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Jun 22, 2022
1 parent 2971ec2 commit 958d2ca
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
labels:
- 'type: dependencies'
14 changes: 6 additions & 8 deletions .github/workflows/integration_test.yml
@@ -1,23 +1,21 @@
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Integration test
on:
push:
branches:
- master
branches: [ master ]
pull_request:
branches:
- master
- rhel*-branch
branches: [ master, rhel*-branch ]
release:
types: [published, created]
types: [ published, created ]

jobs:
buildCheck:
runs-on: ubuntu-20.04
steps:
- name: Repository checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt update && sudo apt install -y libpopt-dev gettext

- name: Build & install
run: make all && make install DESTDIR=/tmp/initscripts
12 changes: 5 additions & 7 deletions .github/workflows/shellcheck_test.yml
@@ -1,23 +1,21 @@
name: Differential ShellCheck
on:
push:
branches: [master, rhel*-branch]
pull_request:
branches: [master, rhel*-branch]
branches: [ master, rhel*-branch ]

jobs:
shellCheck:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v1
uses: redhat-plumbers-in-action/differential-shellcheck@v2
with:
ignored-codes: .github/.diff-shellcheck-exceptions.txt
shell-scripts: .github/.diff.shellcheck-scripts.txt
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
ChangeLog
*.tar.gz
.vscode/

0 comments on commit 958d2ca

Please sign in to comment.