Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
61 changes: 54 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
lint:
name: Lint
test-check:
name: Lint and check types
runs-on: ubuntu-latest
steps:
- name: ⬇️ Set up code
Expand All @@ -24,7 +27,7 @@ jobs:
- name: ⎔ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version-file: '.node-version'
cache: pnpm

- name: 📥 Download dependencies
Expand All @@ -33,6 +36,9 @@ jobs:
- name: 🧵 Lint
run: pnpm run lint

- name: 🧪 Check types
run: pnpm run check

test-unit:
name: Unit tests
runs-on: ubuntu-latest
Expand All @@ -50,7 +56,7 @@ jobs:
- name: ⎔ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version-file: '.node-version'
cache: pnpm

- name: 📥 Download dependencies
Expand All @@ -77,8 +83,6 @@ jobs:
uses: actions/checkout@v4
with:
show-progress: false
ref: ${{ github.head_ref }}
token: ${{ steps.generate_token.outputs.token }}

- name: 📦 Setup PNPM
uses: pnpm/action-setup@v4
Expand All @@ -88,12 +92,15 @@ jobs:
- name: ⎔ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version-file: '.node-version'
cache: pnpm

- name: 📥 Download dependencies
run: pnpm install

- name: 🏗️ Build release assets
run: pnpm run build

- name: 🏗️ Commit and push if needed
run: |
git config user.name "${{ secrets.UGRC_RELEASE_BOT_NAME }}"
Expand All @@ -105,3 +112,43 @@ jobs:
fi
git commit -m 'chore: build release assets'
git push

integration-test:
name: Integration test
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false

- name: 🪙 Convert token
uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ secrets.UGRC_RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }}

- name: Check if branch exists
id: check-branch-exists
run: |
if [[ -n $(git ls-remote --heads ${{ github.server_url }}/${{ github.repository }} dev) ]]; then
echo "exists=yes" >> $GITHUB_OUTPUT
else
echo "exists=no" >> $GITHUB_OUTPUT
fi
shell: bash

- name: Create comment
if: ${{ steps.check-branch-exists.outputs.exists == 'yes' }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
/remind me to verify that this works in 1 minute

> [!WARNING]
> This is a test of the dev branch.
token: ${{ steps.generate-token.outputs.token }}
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
github-app-id: ${{ secrets.UGRC_RELEASE_BOT_APP_ID }}
github-app-key: ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }}
github-app-name: ${{ secrets.UGRC_RELEASE_BOT_NAME }}
github-app-email: ${{ secrets.UGRC_RELEASE_BOT_EMAIL }}
github-app-email: ${{ secrets.UGRC_RELEASE_BOT_EMAIL }}
3 changes: 2 additions & 1 deletion .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: 'check reminders'
name: 'Check Reminders'

on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:

permissions:
issues: write
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ typings/

# next.js build output
.next
tsconfig.tsbuildinfo
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

5 changes: 0 additions & 5 deletions .ignore

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode
/dist
CHANGELOG.md
pnpm-lock.yaml
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-packagejson"],
"printWidth": 120,
"singleQuote": true
}
13 changes: 0 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# Changelog

## [1.1.19](https://github.com/agrc/create-reminder-action/compare/v1.1.18...v1.1.19) (2025-05-12)


### Dependencies

* bump dependencies 🌲 ([c66d98b](https://github.com/agrc/create-reminder-action/commit/c66d98b5b042c275da0dc5dcf731b317b9716e72)), closes [#217](https://github.com/agrc/create-reminder-action/issues/217)
* bump lint-staged ([a662e5c](https://github.com/agrc/create-reminder-action/commit/a662e5cc6390a107eabfb34171a723adb3c7d297))


### Documentation

* remove packaging and release docs ([0f4f50e](https://github.com/agrc/create-reminder-action/commit/0f4f50e6b8228b1015bc32b199c2fab23fa04936))

## [1.1.18](https://github.com/agrc/create-reminder-action/compare/v1.1.17...v1.1.18) (2025-04-21)


Expand Down
1 change: 0 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ inputs:
description: 'the repository owner'
required: true
default: '${{ github.repository_owner }}'

Loading