Skip to content

Commit d5edd9e

Browse files
author
Shelley Lambert
authored
Merge pull request #1 from sophia-guo/initial
WIP Initial build-openj9 github action commit
2 parents 8fb2c58 + 4109a5f commit d5edd9e

20 files changed

+12891
-1
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
lib/
3+
node_modules/

.eslintrc.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"plugins": ["jest", "@typescript-eslint"],
3+
"extends": ["plugin:github/es6"],
4+
"parser": "@typescript-eslint/parser",
5+
"parserOptions": {
6+
"ecmaVersion": 9,
7+
"sourceType": "module",
8+
"project": "./tsconfig.json"
9+
},
10+
"rules": {
11+
"eslint-comments/no-use": "off",
12+
"import/no-namespace": "off",
13+
"no-unused-vars": "off",
14+
"@typescript-eslint/no-unused-vars": "error",
15+
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
16+
"@typescript-eslint/no-require-imports": "error",
17+
"@typescript-eslint/array-type": "error",
18+
"@typescript-eslint/await-thenable": "error",
19+
"@typescript-eslint/ban-ts-ignore": "error",
20+
"camelcase": "off",
21+
"@typescript-eslint/camelcase": "error",
22+
"@typescript-eslint/class-name-casing": "error",
23+
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
24+
"@typescript-eslint/func-call-spacing": ["error", "never"],
25+
"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],
26+
"@typescript-eslint/no-array-constructor": "error",
27+
"@typescript-eslint/no-empty-interface": "error",
28+
"@typescript-eslint/no-explicit-any": "error",
29+
"@typescript-eslint/no-extraneous-class": "error",
30+
"@typescript-eslint/no-for-in-array": "error",
31+
"@typescript-eslint/no-inferrable-types": "error",
32+
"@typescript-eslint/no-misused-new": "error",
33+
"@typescript-eslint/no-namespace": "error",
34+
"@typescript-eslint/no-non-null-assertion": "warn",
35+
"@typescript-eslint/no-object-literal-type-assertion": "error",
36+
"@typescript-eslint/no-unnecessary-qualifier": "error",
37+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
38+
"@typescript-eslint/no-useless-constructor": "error",
39+
"@typescript-eslint/no-var-requires": "error",
40+
"@typescript-eslint/prefer-for-of": "warn",
41+
"@typescript-eslint/prefer-function-type": "warn",
42+
"@typescript-eslint/prefer-includes": "error",
43+
"@typescript-eslint/prefer-interface": "error",
44+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
45+
"@typescript-eslint/promise-function-async": "error",
46+
"@typescript-eslint/require-array-sort-compare": "error",
47+
"@typescript-eslint/restrict-plus-operands": "error",
48+
"semi": "off",
49+
"@typescript-eslint/semi": ["error", "never"],
50+
"@typescript-eslint/type-annotation-spacing": "error",
51+
"@typescript-eslint/unbound-method": "error"
52+
},
53+
"env": {
54+
"node": true,
55+
"es6": true,
56+
"jest/globals": true
57+
}
58+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
###############################################################################
2+
# Copyright (c) 2020, 2020 IBM Corp. and others
3+
#
4+
# This program and the accompanying materials are made available under
5+
# the terms of the Eclipse Public License 2.0 which accompanies this
6+
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7+
# or the Apache License, Version 2.0 which accompanies this distribution and
8+
# is available at https://www.apache.org/licenses/LICENSE-2.0.
9+
#
10+
# This Source Code may also be made available under the following
11+
# Secondary Licenses when the conditions for such availability set
12+
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13+
# General Public License, version 2 with the GNU Classpath
14+
# Exception [1] and GNU General Public License, version 2 with the
15+
# OpenJDK Assembly Exception [2].
16+
#
17+
# [1] https://www.gnu.org/software/classpath/license.html
18+
# [2] http://openjdk.java.net/legal/assembly-exception.html
19+
#
20+
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21+
###############################################################################
22+
name: "nightly build-openj9 jdk 11"
23+
on:
24+
schedule:
25+
- cron: '30 21 * * 1-5'
26+
27+
jobs:
28+
build:
29+
runs-on: ${{ matrix.os }}
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
os: [ubuntu-16.04, macos-10.15, windows-2016]
34+
steps:
35+
- uses: eclipse/build-openj9@v1
36+
id: buildJDK
37+
with:
38+
version: 11
39+
- name: AQA
40+
uses: AdoptOpenJDK/run-aqa@v1
41+
env:
42+
TEST_JDK_HOME: ${{ steps.buildJDK.outputs.BuildJDKDir }}
43+
with:
44+
build_list: 'functional'
45+
target: '_sanity'
46+
- uses: actions/upload-artifact@v2
47+
if: failure()
48+
with:
49+
name: test_output
50+
path: ./**/test_output_*/
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
###############################################################################
2+
# Copyright (c) 2020, 2020 IBM Corp. and others
3+
#
4+
# This program and the accompanying materials are made available under
5+
# the terms of the Eclipse Public License 2.0 which accompanies this
6+
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7+
# or the Apache License, Version 2.0 which accompanies this distribution and
8+
# is available at https://www.apache.org/licenses/LICENSE-2.0.
9+
#
10+
# This Source Code may also be made available under the following
11+
# Secondary Licenses when the conditions for such availability set
12+
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13+
# General Public License, version 2 with the GNU Classpath
14+
# Exception [1] and GNU General Public License, version 2 with the
15+
# OpenJDK Assembly Exception [2].
16+
#
17+
# [1] https://www.gnu.org/software/classpath/license.html
18+
# [2] http://openjdk.java.net/legal/assembly-exception.html
19+
#
20+
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21+
###############################################################################
22+
name: "nightly build-openj9 jdk 14"
23+
on:
24+
schedule:
25+
- cron: '30 21 * * 1-5'
26+
jobs:
27+
build:
28+
runs-on: ${{ matrix.os }}
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
os: [ubuntu-16.04, macos-10.15]
33+
steps:
34+
- uses: eclipse/build-openj9@v1
35+
id: buildJDK
36+
with:
37+
version: 14
38+
- name: AQA
39+
uses: AdoptOpenJDK/run-aqa@v1
40+
env:
41+
TEST_JDK_HOME: ${{ steps.buildJDK.outputs.BuildJDKDir }}
42+
with:
43+
build_list: 'functional'
44+
target: '_sanity'
45+
- uses: actions/upload-artifact@v2
46+
if: failure()
47+
with:
48+
name: test_output
49+
path: ./**/test_output_*/
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
###############################################################################
2+
# Copyright (c) 2020, 2020 IBM Corp. and others
3+
#
4+
# This program and the accompanying materials are made available under
5+
# the terms of the Eclipse Public License 2.0 which accompanies this
6+
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7+
# or the Apache License, Version 2.0 which accompanies this distribution and
8+
# is available at https://www.apache.org/licenses/LICENSE-2.0.
9+
#
10+
# This Source Code may also be made available under the following
11+
# Secondary Licenses when the conditions for such availability set
12+
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13+
# General Public License, version 2 with the GNU Classpath
14+
# Exception [1] and GNU General Public License, version 2 with the
15+
# OpenJDK Assembly Exception [2].
16+
#
17+
# [1] https://www.gnu.org/software/classpath/license.html
18+
# [2] http://openjdk.java.net/legal/assembly-exception.html
19+
#
20+
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21+
###############################################################################
22+
name: "nightly build-openj9 jdk 8"
23+
on:
24+
schedule:
25+
- cron: '30 21 * * 1-5'
26+
27+
jobs:
28+
build:
29+
runs-on: ${{ matrix.os }}
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
os: [ubuntu-16.04]
34+
steps:
35+
- uses: eclipse/build-openj9@v1
36+
id: buildJDK
37+
with:
38+
version: 8
39+
- name: AQA
40+
uses: AdoptOpenJDK/run-aqa@v1
41+
env:
42+
TEST_JDK_HOME: ${{ steps.buildJDK.outputs.BuildJDKDir }}
43+
with:
44+
build_list: 'functional'
45+
target: '_sanity'
46+
- uses: actions/upload-artifact@v2
47+
if: failure()
48+
with:
49+
name: test_output
50+
path: ./**/test_output_*/

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
###############################################################################
2+
# Copyright (c) 2020, 2020 IBM Corp. and others
3+
#
4+
# This program and the accompanying materials are made available under
5+
# the terms of the Eclipse Public License 2.0 which accompanies this
6+
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7+
# or the Apache License, Version 2.0 which accompanies this distribution and
8+
# is available at https://www.apache.org/licenses/LICENSE-2.0.
9+
#
10+
# This Source Code may also be made available under the following
11+
# Secondary Licenses when the conditions for such availability set
12+
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13+
# General Public License, version 2 with the GNU Classpath
14+
# Exception [1] and GNU General Public License, version 2 with the
15+
# OpenJDK Assembly Exception [2].
16+
#
17+
# [1] https://www.gnu.org/software/classpath/license.html
18+
# [2] http://openjdk.java.net/legal/assembly-exception.html
19+
#
20+
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21+
###############################################################################
22+
name: "test branch tip"
23+
on:
24+
push:
25+
branches-ignore:
26+
- '**'
27+
jobs:
28+
build:
29+
runs-on: ${{ matrix.os }}
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
os: [windows-2016, ubuntu-16.04, macos-latest]
34+
steps:
35+
- uses: actions/checkout@v1
36+
- uses: ./
37+
id: buildJDK
38+
with:
39+
version: 11
40+
- run: ${{ steps.buildJDK.outputs.BuildJDKDir }}/bin/java -version

.gitignore

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# Copyright (c) 2020, 2020 IBM Corp. and others
2+
#
3+
# This program and the accompanying materials are made available under
4+
# the terms of the Eclipse Public License 2.0 which accompanies this
5+
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
6+
# or the Apache License, Version 2.0 which accompanies this distribution and
7+
# is available at https://www.apache.org/licenses/LICENSE-2.0.
8+
#
9+
# This Source Code may also be made available under the following
10+
# Secondary Licenses when the conditions for such availability set
11+
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
12+
# General Public License, version 2 with the GNU Classpath
13+
# Exception [1] and GNU General Public License, version 2 with the
14+
# OpenJDK Assembly Exception [2].
15+
#
16+
# [1] https://www.gnu.org/software/classpath/license.html
17+
# [2] http://openjdk.java.net/legal/assembly-exception.html
18+
#
19+
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
20+
21+
# Dependency directory
22+
node_modules
23+
24+
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
25+
# Logs
26+
logs
27+
*.log
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
lerna-debug.log*
32+
33+
# Diagnostic reports (https://nodejs.org/api/report.html)
34+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
35+
36+
# Runtime data
37+
pids
38+
*.pid
39+
*.seed
40+
*.pid.lock
41+
42+
# Directory for instrumented libs generated by jscoverage/JSCover
43+
lib-cov
44+
45+
# Coverage directory used by tools like istanbul
46+
coverage
47+
*.lcov
48+
49+
# nyc test coverage
50+
.nyc_output
51+
52+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
53+
.grunt
54+
55+
# Bower dependency directory (https://bower.io/)
56+
bower_components
57+
58+
# node-waf configuration
59+
.lock-wscript
60+
61+
# Compiled binary addons (https://nodejs.org/api/addons.html)
62+
build/Release
63+
64+
# Dependency directories
65+
jspm_packages/
66+
67+
# TypeScript v1 declaration files
68+
typings/
69+
70+
# TypeScript cache
71+
*.tsbuildinfo
72+
73+
# Optional npm cache directory
74+
.npm
75+
76+
# Optional eslint cache
77+
.eslintcache
78+
79+
# Optional REPL history
80+
.node_repl_history
81+
82+
# Output of 'npm pack'
83+
*.tgz
84+
85+
# Yarn Integrity file
86+
.yarn-integrity
87+
88+
# dotenv environment variables file
89+
.env
90+
.env.test
91+
92+
# parcel-bundler cache (https://parceljs.org/)
93+
.cache
94+
95+
# next.js build output
96+
.next
97+
98+
# nuxt.js build output
99+
.nuxt
100+
101+
# vuepress build output
102+
.vuepress/dist
103+
104+
# Serverless directories
105+
.serverless/
106+
107+
# FuseBox cache
108+
.fusebox/
109+
110+
# DynamoDB Local files
111+
.dynamodb/
112+
113+
# OS metadata
114+
.DS_Store
115+
Thumbs.db
116+
117+
# Ignore built ts files
118+
__tests__/runner/*
119+
lib/**/*
120+
121+
# Ignore eclipse project
122+
.project

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
lib/
3+
node_modules/

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"trailingComma": "none",
8+
"bracketSpacing": false,
9+
"arrowParens": "avoid",
10+
"parser": "typescript"
11+
}

0 commit comments

Comments
 (0)