Skip to content

Commit

Permalink
ci: Only run Docs and Test jobs when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Feb 21, 2024
1 parent 15debe0 commit 816d6cf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Docs

on:
push:
branches:
- main
- v[0-9]+
pull_request:
pull_request: &pull_request
branches:
- main
- v[0-9]+
- main
- v[0-9]+
path:
- .github/workflows/docs.yaml
- .github/actions/setup-nix/**
- default.nix
- nix/**
- docs/**
paths-ignore:
- '**.md'
push:
<<: *pull_request

jobs:
build:
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
name: Test

on:
pull:
pull_request: &pull_request
branches:
- main
- v[0-9]+
paths:
- .github/workflows/test.yaml
- .github/actions/setup-nix/**
- default.nix
- nix/**
- .stylish-haskell.yaml
- postgrest.cabal
- '**.hs'
- test/**
paths-ignore:
- '**.md'
pull:
<<: *pull_request
tags:
- v*
pull_request:
branches:
- main
- v[0-9]+

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down

0 comments on commit 816d6cf

Please sign in to comment.