-
Notifications
You must be signed in to change notification settings - Fork 45
48 lines (37 loc) · 1.16 KB
/
test.yml
File metadata and controls
48 lines (37 loc) · 1.16 KB
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
38
39
40
41
42
43
44
45
46
47
48
name: Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v2
- name: Setup Java JDK
uses: actions/setup-java@v1.4.3
with:
java-version: 7
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 2.7
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 13
- name: Install npm packages
run: npm install
- name: Test for successful compilation
run: npm run compile
- name: Check that all build files are up to date
run: |
if ! git diff --exit-code --quiet
then
echo "Differences were detected in the following files after running compile:"
git diff --name-status
echo "\nYou probably didn't run the compilation, or forgot to commit the compiled files." \
"Please run npm run compile and check the file diffs."
exit 1
fi