mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
chore: fix mix github actions problems
This commit is contained in:
parent
788e329d6e
commit
6a86880bbe
1
.github/workflows/browserstack.yml
vendored
1
.github/workflows/browserstack.yml
vendored
|
@ -15,6 +15,7 @@ jobs:
|
|||
with:
|
||||
username: ${{ secrets.BROWSERSTACK_USERNAME }}
|
||||
access-key: ${{ secrets.BROWSERSTACK_ACCESSKEY }}
|
||||
project-name: 'showdown'
|
||||
|
||||
- name: 'BrowserStack Local Tunnel Setup' # Invokes the setup-local action
|
||||
uses: browserstack/github-actions/setup-local@master
|
||||
|
|
6
.github/workflows/docs.yml
vendored
6
.github/workflows/docs.yml
vendored
|
@ -2,14 +2,12 @@ name: documentation
|
|||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'mkdocs.yml'
|
||||
- 'docs/**'
|
||||
- '.github/workflows/docs.yml'
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
|
||||
jobs:
|
||||
build_docs:
|
||||
|
@ -30,4 +28,4 @@ jobs:
|
|||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
https://api.github.com/repos/${OWNER}/${REPO}/dispatches \
|
||||
-d '{ "event_type": "e: \"'"${COMMIT}"'\" by '"${COMMITTER}"'", "client_payload": { "source": "showdown" } }'
|
||||
-d '{ "event_type": "e: \"'"${COMMIT}"'\" by '"${COMMITTER}"'", "client_payload": { "source": "showdown" } }'
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
![Build Status: Linux](https://github.com/showdownjs/showdown/actions/workflows/node.linux.yml/badge.svg)
|
||||
![Build Status: Windows](https://github.com/showdownjs/showdown/actions/workflows/node.win.yml/badge.svg)
|
||||
[![Browserstack Tests](https://automate.browserstack.com/badge.svg?badge_key=VTIvTDNqWVdaTHljbS9RNmYrcTBiL0Uxc3dkRDhaN1dPaXpPb2VOc1B2VT0tLU1Ib09kVjVzMjhFcHExbWFSWlJEV3c9PQ==--1fb92e1730e4a00630d17d533822de6403ca65ec)](https://automate.browserstack.com/public-build/VTIvTDNqWVdaTHljbS9RNmYrcTBiL0Uxc3dkRDhaN1dPaXpPb2VOc1B2VT0tLU1Ib09kVjVzMjhFcHExbWFSWlJEV3c9PQ==--1fb92e1730e4a00630d17d533822de6403ca65ec)
|
||||
[![npm version](https://badge.fury.io/js/showdown.svg)](http://badge.fury.io/js/showdown)
|
||||
[![Bower version](https://badge.fury.io/bo/showdown.svg)](http://badge.fury.io/bo/showdown)
|
||||
[![Join the chat at https://gitter.im/showdownjs/showdown](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/showdownjs/showdown?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/tiviesantos)
|
||||
|
||||
------
|
||||
|
|
|
@ -5,7 +5,8 @@ module.exports = function (config) {
|
|||
username: process.env.BROWSERSTACK_USERNAME,
|
||||
accessKey: process.env.BROWSERSTACK_ACCESSKEY,
|
||||
project: 'showdown',
|
||||
build: require('./package.json').version
|
||||
build: require('./package.json').version,
|
||||
name: 'Unit Testing'
|
||||
},
|
||||
|
||||
// define browsers
|
||||
|
@ -13,26 +14,24 @@ module.exports = function (config) {
|
|||
bstack_chrome_windows: {
|
||||
base: 'BrowserStack',
|
||||
browser: 'chrome',
|
||||
browser_version: '72.0',
|
||||
browser_version: '49',
|
||||
os: 'Windows',
|
||||
os_version: '10'
|
||||
},
|
||||
bstack_firefox_windows: {
|
||||
base: 'BrowserStack',
|
||||
browser: 'firefox',
|
||||
browser_version: '98.0',
|
||||
browser_version: '44',
|
||||
os: 'Windows',
|
||||
os_version: '10'
|
||||
},
|
||||
//dropped support for IE 10
|
||||
bstack_ie10_windows: {
|
||||
bstack_edge_windows: {
|
||||
base: 'BrowserStack',
|
||||
browser: 'ie',
|
||||
browser_version: '10',
|
||||
browser: 'edge',
|
||||
browser_version: '15',
|
||||
os: 'Windows',
|
||||
os_version: '7'
|
||||
os_version: '10'
|
||||
},
|
||||
//dropped support for IE 10
|
||||
bstack_ie11_windows: {
|
||||
base: 'BrowserStack',
|
||||
browser: 'ie',
|
||||
|
@ -40,25 +39,40 @@ module.exports = function (config) {
|
|||
os: 'Windows',
|
||||
os_version: '10'
|
||||
},
|
||||
bstack_macos_safari: {
|
||||
base: 'BrowserStack',
|
||||
browser: 'safari',
|
||||
browser_version: '10.1',
|
||||
os: 'OS X',
|
||||
os_version: 'Sierra'
|
||||
},
|
||||
bstack_iphoneX: {
|
||||
base: 'BrowserStack',
|
||||
browser: 'safari',
|
||||
device: 'iPhone X',
|
||||
os: 'ios',
|
||||
real_mobile: true,
|
||||
os_version: '11.0'
|
||||
os_version: '11.0',
|
||||
device: 'iPhone X',
|
||||
real_mobile: true
|
||||
},
|
||||
bstack_android: {
|
||||
base: 'BrowserStack',
|
||||
browser: 'chrome',
|
||||
os: 'android',
|
||||
os_version:'4.4',
|
||||
device: 'Samsung Galaxy Tab 4',
|
||||
realMobile: true
|
||||
}
|
||||
},
|
||||
|
||||
browsers: ['bstack_chrome_windows', 'bstack_firefox_windows', 'bstack_ie11_windows', 'bstack_iphoneX'],
|
||||
browsers: ['bstack_chrome_windows', 'bstack_firefox_windows', 'bstack_ie11_windows', 'bstack_edge_windows', 'bstack_iphoneX', 'bstack_macos_safari', 'bstack_android'],
|
||||
frameworks: ['mocha', 'chai'],
|
||||
reporters: ['dots', 'BrowserStack'],
|
||||
files: [
|
||||
{ pattern: '.build/showdown.js'},
|
||||
{ pattern: 'src/options.js'},
|
||||
// tests
|
||||
{ pattern: 'test/unit/showdown*.js' },
|
||||
{ pattern: 'test/functional/showdown*.js' },
|
||||
{ pattern: 'test/unit/showdown*.js' }
|
||||
//{ pattern: 'test/functional/showdown*.js' },
|
||||
],
|
||||
singleRun: true,
|
||||
concurrency: Infinity
|
||||
|
|
Loading…
Reference in New Issue
Block a user