1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(CI): Run tests on pushed commits

So that each commit in repo is tested, including merge commits that
aren't present in PRs. Also prepares for running releases only on push
but not on PRs.

Workflows have a global runs-on, so commit format check needs to be
split out from the shared PR and push workflow to since checking all
commit messages on pushes always fails due to very old commits not
following the proper format.
This commit is contained in:
Anthony Bilinski 2021-09-23 03:39:01 -07:00
parent d7347773f8
commit ade6e38003
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
2 changed files with 16 additions and 13 deletions

14
.github/workflows/commit-format.yaml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Commit Format
on: pull_request
jobs:
verify-commit-format:
name: Verify Commit Format
runs-on: ubuntu-18.04
env:
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # so that we can see the full commit range
- name: Run
run: ./.travis/verify-commit-format.sh

View File

@ -1,17 +1,6 @@
name: test
on: pull_request
name: Test
on: [pull_request, push]
jobs:
verify-commit-format:
name: Verify Commit Format
runs-on: ubuntu-18.04
env:
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # so that we can see the full commit range
- name: Run
run: ./.travis/verify-commit-format.sh
build-docs:
name: Docs
runs-on: ubuntu-18.04