-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 913 Bytes
/
JavaScript.yml
File metadata and controls
37 lines (31 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test JavaScript
on:
push:
paths:
- 'JavaScript/**'
- '.github/workflows/JavaScript.yml'
pull_request:
paths:
- 'JavaScript/**'
- '.github/workflows/JavaScript.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 15.x
- name: Set up dependencies
working-directory: JavaScript
run: npm install
- name: Test
working-directory: JavaScript
run: npm test
- name: Report using branch name (dynamic, use for a pair on each branch)
run: |
export GIT_BRANCH_NAME=$(git symbolic-ref --short HEAD)
export GIT_BRANCH_NAME=$( echo "$GIT_BRANCH_NAME" | sed 's/ /%20/g' )
curl -X GET ${{ secrets.PUSH_COUNTER_URL }}/record/$GIT_BRANCH_NAME?build=green