Skip to content

Commit

Permalink
ci(push): add linting and doc-notifying
Browse files Browse the repository at this point in the history
  • Loading branch information
streambinder committed Aug 19, 2023
1 parent 4c4d1a7 commit 211bf07
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 25 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: push

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@v2
with:
check_filenames: true
skip: "*.template,*.pl"
test:
needs: [commitlint,codespell]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
sudo apt update
sudo apt install -y libgcrypt20-dev libgnutls28-dev
make test
notify:
needs: [test]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
docs:
- 'docs/**'
- uses: peter-evans/repository-dispatch@v2
if: steps.filter.outputs.docs == 'true'
with:
token: ${{ secrets.GH_ACTIONS_VPNC }}
repository: streambinder/streambinder
event-type: doc-sync
client-payload: '{"repo": "${{ github.repository }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
25 changes: 0 additions & 25 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 211bf07

Please sign in to comment.