Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: avoid running ci when only docs were changed #737

Merged
merged 9 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches: [ main ]
pull_request:
branches: [ '*' ]
# NOTE: these paths should be the same as the ones in ci_skipped.yml
paths-ignore:
- 'docs/**'
- '.all-contributorsrc'
- 'README.md'
- 'LICENSE'
- 'metrics/**'

env:
MIX_ENV: test
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/ci_skipped.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Workaround to skip the "required" check when jobs are skipped
name: '*CI Skipped*'

on:
pull_request:
branches: [ '*' ]
paths:
- 'docs/**'
- '.all-contributorsrc'
- 'README.md'
- 'LICENSE'
- 'metrics/**'

jobs:
compile-native:
name: Build native libraries
runs-on: ubuntu-22.04
if: false
steps: [run: true]

build:
name: Build project
runs-on: ubuntu-22.04
if: false
steps: [run: true]

smoke:
name: Start and stop the node
runs-on: ubuntu-22.04
if: false
steps: [run: true]

test:
name: Test
runs-on: ubuntu-22.04
if: false
steps: [run: true]

lint:
name: Lint
runs-on: ubuntu-22.04
if: false
steps: [run: true]

# NOTE: matrix jobs aren't expanded if skipped
spectests:
name: Run spec-tests
strategy:
matrix:
config: ["minimal", "general", "mainnet"]
runs-on: ubuntu-22.04
steps: [run: true]
Loading