cal.pub0.org/.github/workflows/required-checks.yml

45 lines
1.3 KiB
YAML
Raw Normal View History

2022-07-04 20:28:34 +00:00
name: "Meta Workflow: Require Conditional Status Checks"
on:
2022-07-05 01:59:38 +00:00
pull_request:
2022-07-05 01:44:23 +00:00
branches:
- main
2023-01-12 23:01:33 +00:00
workflow_call:
2022-09-08 17:01:47 +00:00
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
2022-07-04 20:28:34 +00:00
jobs:
2022-07-04 23:36:38 +00:00
required-checks:
2022-07-12 00:24:08 +00:00
runs-on: ubuntu-latest
2022-07-04 20:28:34 +00:00
steps:
- name: Ensure All Conditional Checks Have Passed
uses: blend/require-conditional-status-checks@2022.02.04
with:
2022-07-06 15:28:09 +00:00
timeout: 15m
github-token: ${{ github.token }}
2022-07-04 20:28:34 +00:00
interval: 20s
2022-07-06 15:28:09 +00:00
# Question marks aren't working
# @see https://github.com/blend/require-conditional-status-checks/pull/11
2022-07-05 01:29:07 +00:00
checks-yaml: |
2022-07-04 20:28:34 +00:00
- job: lint
2022-07-05 00:48:08 +00:00
paths:
2022-07-06 15:28:09 +00:00
- /**/*.jsx
- /**/*.js
- /**/*.tsx
- /**/*.ts
2022-07-04 23:36:38 +00:00
- job: check-types
2022-07-04 20:28:34 +00:00
paths:
2022-07-06 15:28:09 +00:00
- /**/*.tsx
- /**/*.ts
2022-07-04 21:31:28 +00:00
- job: e2e
paths:
2022-07-06 15:28:09 +00:00
- /apps/web/**
- /packages/**
2022-07-04 21:31:28 +00:00
- job: e2e-embed
2022-07-04 20:28:34 +00:00
paths:
2022-07-06 15:28:09 +00:00
- /apps/web/**
- /packages/embeds/**
- job: test
paths:
- /apps/web/**
- /packages/**