Skip to content

Commit

Permalink
simplified ci workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Feb 15, 2024
1 parent 5a79b40 commit 023bd4e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 119 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/check-pr.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Check PR
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -8,8 +11,8 @@ env:
TZ: "America/New_York"

jobs:
check-pr:
name: Check PR
ci:
name: CI
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -40,30 +43,26 @@ jobs:
run: |
pnpm \
--filter '!./standard' \
--filter '!./contrib/**' \
--filter '!./examples/**' \
install
- name: Lint
run: |
pnpm \
--filter '!./standard' \
--filter '!./contrib/**' \
--filter '!./examples/**' \
run lint
- name: Build
run: |
pnpm \
--filter '!./standard' \
--filter '!./contrib/**' \
--filter '!./examples/**' \
run build
# - name: Test
# run: |
# pnpm \
# --filter '!./standard' \
# --filter '!./contrib/**' \
# --filter '!./examples/**' \
# run test
# execute only contrib tests, as "smoke" tests. they're fast
- name: Test
run: |
pnpm \
--filter './contrib/**' \
run test
33 changes: 13 additions & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Release
on:
pull_request:
branches:
- main
types:
- closed
# Run manually from UI
workflow_dispatch: {}

env:
TZ: "America/New_York"
Expand All @@ -15,12 +12,6 @@ jobs:
runs-on: ubuntu-latest
environment: production

if: >
github.repository == 'fullcalendar/fullcalendar-workspace' &&
github.event.pull_request.head.repo.full_name == 'fullcalendar/fullcalendar-workspace' &&
github.event.pull_request.head.ref == 'staged-release' &&
github.event.pull_request.merged
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -60,16 +51,19 @@ jobs:
--filter '!./examples/**' \
install
- name: Sync Repos
run: pnpm run sync-repos

- name: Lint
run: |
pnpm \
--filter '!./standard' \
--filter '!./examples/**' \
run lint
- name: Bump Versions
run: |
pnpm run version-bump && \
git add --all && \
git commit -m 'version-bump'
- name: Build
run: |
pnpm \
Expand All @@ -78,17 +72,16 @@ jobs:
run build && \
pnpm run archive
# NOTE: premium/standard tests disabled in CI while flakiness is addressed
# execute only contrib tests, as "smoke" tests. they're fast
- name: Test
if: ${{ !contains(github.event.pull_request.title, 'no-test') }}
run: |
pnpm \
--filter '!./premium/**' \
--filter '!./standard/**' \
--filter '!./standard' \
--filter '!./examples/**' \
--filter './contrib/**' \
run test
- name: Sync Repos
run: pnpm run sync-repos

- name: Tag & Create GitHub Releases
env:
GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} # for GitHub CLI
Expand Down
86 changes: 0 additions & 86 deletions .github/workflows/stage-release.yaml

This file was deleted.

0 comments on commit 023bd4e

Please sign in to comment.