Skip to content

Commit

Permalink
✨ Added support for Adaptive Cards Universal Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wictorwilen committed Jun 21, 2021
1 parent 15b1abc commit 2060340
Show file tree
Hide file tree
Showing 15 changed files with 21,646 additions and 362 deletions.
40 changes: 40 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"env": {
"node": true,
"jest/globals": true
},
"extends": [
"standard"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"jest"
],
"rules": {
"object-shorthand": 2,
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"space-before-function-paren": "off",
"space-in-parens": "off",
"padded-blocks": "off",
"no-unused-vars": "off"
}
}
1 change: 1 addition & 0 deletions .github/FUNDING.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [wictorwilen]
25 changes: 25 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: botbuilder-teams-messagingextensions CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run test
- run: npm run build
env:
CI: true
25 changes: 25 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: botbuilder-teams-messagingextensions Publish
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
- name: Publish release
if: "!contains(github.ref, 'preview')"
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish preview
if: contains(github.ref, 'preview')
run: npm publish --tag preview
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ node_modules/
dist
lib
.vscode
junit.xml
coverage
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ tsconfig.json
*.spec.js
.travis.yml
tslint.json
.github
.eslintrc.json
junit.xml
jest.config.js
coverage
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [*Unreleased*] - <**>

### Added

* Added support for Adaptive Cards 1.4 universal actions `adaptiveCard/action`
* Added unit tests

### Changes

* Moved from Travis CI to Github Actions
* Migrated from TSLint to ESLint

## [*1.7.0*] - <*2020-10-27*>

### Changes
Expand Down
24 changes: 24 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
name: "package",
displayName: "package",
rootDir: "./",
globals: {
"ts-jest": {
tsconfig: "<rootDir>/tsconfig.json",
diagnostics: {
ignoreCodes: [151001]
}
}
},
preset: "ts-jest/presets/js-with-ts",
testMatch: [
"<rootDir>/src/**/*.spec.(ts|tsx|js)"
],
collectCoverageFrom: [
"/src/**/*.{js,jsx,ts,tsx}",
"!<rootDir>/node_modules/"
],
coverageReporters: [
"text", "html"
]
};
Loading

0 comments on commit 2060340

Please sign in to comment.