Skip to content
Open
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
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

54 changes: 0 additions & 54 deletions .eslintrc.json

This file was deleted.

5 changes: 1 addition & 4 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":automergeMinor"
],
"extends": ["config:base", ":automergeMinor"],
"labels": ["dependencies"],
"vulnerabilityAlerts": {
"labels": ["security"]
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Continuous Integration
on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: read

jobs:
test-typescript:
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v5

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v5
with:
node-version-file: .node-version
cache: npm

- name: Install Dependencies
id: npm-ci
run: npm ci

- name: Check Format
id: npm-format-check
run: npm run format:check

- name: Lint
id: npm-lint
run: npm run lint

- name: Test
id: npm-ci-test
run: npm run ci-test

test-action:
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v5

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v5
with:
node-version-file: .node-version
cache: npm

- name: Install Dependencies
id: npm-ci
run: npm ci

- name: Build Action
id: build
run: npm run package

- name: Test Local Action
id: test-action
uses: ./
with:
github-token: ${{ github.token }}
webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
25 changes: 0 additions & 25 deletions .github/workflows/test.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@ Thumbs.db

# Ignore built ts files
__tests__/runner/*
lib/**/*
lib/**/*
dist/**/*
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
6 changes: 4 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
.licenses/
dist/
lib/
node_modules/
node_modules/
coverage/
10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

16 changes: 16 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See: https://prettier.io/docs/en/configuration

printWidth: 80
tabWidth: 2
useTabs: false
semi: false
singleQuote: true
quoteProps: as-needed
jsxSingleQuote: false
trailingComma: none
bracketSpacing: true
bracketSameLine: true
arrowParens: always
proseWrap: always
htmlWhitespaceSensitivity: css
endOfLine: lf
14 changes: 14 additions & 0 deletions .yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See: https://yamllint.readthedocs.io/en/stable/

rules:
document-end: disable
document-start:
level: warning
present: false
line-length:
level: warning
max: 80
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
ignore:
- .licenses/
34 changes: 29 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,42 @@
# CHANGELOG

## 2.1.0

- feat: migrate to ES modules (type: module)
- feat: replace @vercel/ncc with rollup build system
- feat: update to latest dev dependencies matching official TypeScript action template
- feat: update ESLint to v9 with flat config (eslint.config.mjs)
- feat: update Jest to v30 with ES modules support
- feat: update TypeScript to latest version
- feat: replace old test workflow with new CI workflow based on official template
- feat: update action.yml to use new build output (dist/index.js)
- feat: add .node-version file for CI
- feat: ignore dist directory in git and build tools
- fix: update CI workflow to include build step for test-action job
- fix: update Jest configuration to pass with no tests and use correct tsconfig
- fix: resolve linting issues and improve error handling
- fix: update dependencies to latest compatible versions
- fix: update rollup.config.ts to match official TypeScript action template
- fix: add external dependencies to prevent bundling issues
- fix: ensure proper ES module build with correct input file path

## 2.0.0

- feat: upgrade to Node.js 24

## 1.1.3

- fix: update `actions/checkout` step to `v4`
- fix: actualize `CHANGELOG.md`
- fix: update `actions/checkout` step to `v4`
- fix: actualize `CHANGELOG.md`

## 1.1.1

- fix: increase timeout to 30 seconds
- fix: increase timeout to 30 seconds

## 1.1.0

- feat: update dependencies
- feat: update dependencies

## 1.0.0

- feat: update action to use NodeJS 20
- feat: update action to use NodeJS 20
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

### Usage

1. Add `MS_TEAMS_WEBHOOK_URI` on your repository's configs on Settings > Secrets. It is the [webhook URI](https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook) of the dedicated Microsoft Teams channel for notification.
1. Add `MS_TEAMS_WEBHOOK_URI` on your repository's configs on Settings >
Secrets. It is the
[webhook URI](https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook)
of the dedicated Microsoft Teams channel for notification.

2) Add a new `step` on your workflow code as last step of workflow job:

Expand All @@ -26,12 +29,13 @@ jobs:

### Known Issues

- Always set this step with `if: always()` when there are steps between `actions/checkout@v2` and this step.
- Always set this step with `if: always()` when there are steps between
`actions/checkout@v2` and this step.

### Roadmap

- add error message if workflow failed
- add files changed list
- add workflow run duration

Feel free to create issue if you have an idea in mind
Feel free to create issue if you have an idea in mind
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
description: MS Teams webhook URI
runs:
using: node24
main: dist/main/index.js
main: dist/index.js
branding:
icon: truck
color: green
color: green
599 changes: 0 additions & 599 deletions dist/main/index.js

This file was deleted.

Loading
Loading