-
Notifications
You must be signed in to change notification settings - Fork 199
67 lines (63 loc) · 1.9 KB
/
legacy.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# GitHub CI workflow for PiranhaJava
name: Legacy
on:
pull_request:
push:
branches:
- master
jobs:
detect:
uses: ./.github/workflows/detect_changes.yml
build_JDK:
name: "Build Java (legacy)"
runs-on: ubuntu-latest
needs: detect
if: ${{ github.event_name == 'push' || needs.detect.outputs.legacy == 'true' }}
steps:
- name: Check out Piranha sources
uses: actions/checkout@v2
- name: 'Set up JDK 8'
uses: actions/setup-java@v1
with:
java-version: 8
- name: Build and test using Gradle and Java
uses: eskatos/gradle-command-action@v1
with:
build-root-directory: ./legacy/java
wrapper-directory: ./legacy/java
arguments: verGJF build
build_JS:
name: Build JS (legacy)
runs-on: ubuntu-latest
needs: detect
if: ${{ github.event_name == 'push' || needs.detect.outputs.legacy == 'true' }}
env:
HUSKY_SKIP_INSTALL: 1
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm ci
working-directory: "legacy/javascript"
- run: npm test
working-directory: "legacy/javascript"
- run: npm test
working-directory: "legacy/javascript"
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Format
run: |
npm ci
npm run check_format
working-directory: "legacy/javascript"
- uses: actions/checkout@v2
- uses: hallee/eslint-action@1.0.3
with:
# GITHUB_TOKEN in forked repositories is read-only
# https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
repo-token: ${{secrets.GITHUB_TOKEN}}
source-root: legacy/javascript