corso/.github/workflows/ci-skip.yml
Keepers 1f8c3cdb11
only run actions on /src changes (#750)
## Description

Re-opening the PR with a hack (sourced from github
themselves) to skip the required check if we don't run
the standard required jobs.

## Type of change

- [x] 🌻 Feature

## Issue(s)

#744

## Test Plan

- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
2022-09-02 22:30:18 +00:00

30 lines
858 B
YAML

name: CI Tests
on:
push:
branches: [main]
paths-ignore:
- '/src/**'
- '/.github/**'
pull_request:
branches: [main]
paths-ignore:
- '/src/**'
- '/.github/**'
# Intentional no-op used to tell the build system that
# required actions like Test-Suite and Linting have passed
# successfully, even though they were skipped.
# This hack brought to you by docs.github.com
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
jobs:
Test-Suite:
runs-on: ubuntu-latest
steps:
- run: 'echo "Build step skipped - no testing required" '
Linting:
runs-on: ubuntu-latest
steps:
- run: 'echo "Build step skipped - no linting required" '