Skip to content

Commit 72c25f2

Browse files
authored
Merge pull request vuejs#27 from American-Soccer-Analysis/asa-215-javascript-info
ASA-215: Add workflow to test JavaScript package
2 parents a14fee1 + d8e8dbc commit 72c25f2

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.github/dependabot.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/javascript-package/"
5+
schedule:
6+
interval: "weekly"
7+
day: "monday"
8+
time: "02:00"
9+
timezone: "America/New_York"
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: JavaScript tests
5+
6+
on:
7+
workflow_dispatch:
8+
branches: [main]
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "javascript-package/**"
13+
- ".github/workflows/javascript-tests.yml"
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
node-version: [12.x, 14.x, 16.x]
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
- name: Run tests
30+
run: |
31+
cd javascript-package
32+
npm ci
33+
npm run build --if-present
34+
npm test

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# itscalledsoccer
22

3-
R and Python packages that wrap the American Soccer Analysis API.
3+
R, Python and JavaScript packages that wrap the American Soccer Analysis API.
44

55
See the READMEs in the respective package directories for usage information:
66

77
- [Python](python-package/README.md)
88
- [R](R-package/README.md)
9+
- [JavaScript](javascript-package/README.md)

0 commit comments

Comments
 (0)