mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
test proxy
This commit is contained in:
parent
63d68602dd
commit
2cbe3e7b1b
5 changed files with 60 additions and 17 deletions
2
.github/workflows/lint-yaml.yml
vendored
2
.github/workflows/lint-yaml.yml
vendored
|
@ -4,7 +4,7 @@ jobs:
|
|||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/checkout@v2
|
||||
- name: Lint action.yml
|
||||
uses: ibiqlik/action-yamllint@master
|
||||
with:
|
||||
|
|
40
.github/workflows/workflow.yml
vendored
40
.github/workflows/workflow.yml
vendored
|
@ -1,26 +1,34 @@
|
|||
name: Main workflow
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
run:
|
||||
name: Run
|
||||
# build:
|
||||
# runs-on: ${{ matrix.operating-system }}
|
||||
# strategy:
|
||||
# matrix:
|
||||
# operating-system: [ubuntu-latest, windows-latest]
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v2
|
||||
# - name: Set Node.js 12.x
|
||||
# uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: 12.x
|
||||
# - name: npm install
|
||||
# run: npm install
|
||||
# - name: Lint
|
||||
# run: npm run format-check
|
||||
# - name: npm test
|
||||
# run: npm test
|
||||
|
||||
test:
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest, windows-latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Set Node.js 10.x
|
||||
uses: actions/setup-node@master
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup java 7
|
||||
uses: ./
|
||||
with:
|
||||
node-version: 10.x
|
||||
|
||||
- name: npm install
|
||||
run: npm install
|
||||
|
||||
- name: Lint
|
||||
run: npm run format-check
|
||||
|
||||
- name: npm test
|
||||
run: npm test
|
||||
java-version: 7.x
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
|||
# Ignore node_modules, ncc is used to compile nodejs modules into a single file
|
||||
node_modules/
|
||||
__tests__/runner/*
|
||||
__tests__/sample-proj/target/
|
||||
|
||||
# Ignore js files that are transpiled from ts files in src/
|
||||
lib/
|
||||
|
|
22
__tests__/sample-proj/pom.xml
Normal file
22
__tests__/sample-proj/pom.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.helloworld</groupId>
|
||||
<artifactId>HelloWorld</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<name>HelloWorld</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<!-- https://mvnrepository.com/artifact/org.json/json -->
|
||||
<dependency>
|
||||
<groupId>org.json</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
<version>20190722</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<maven.compiler.source>7</maven.compiler.source>
|
||||
<maven.compiler.target>7</maven.compiler.target>
|
||||
</properties>
|
||||
</project>
|
12
__tests__/sample-proj/src/main/java/com/helloworld/App.java
Normal file
12
__tests__/sample-proj/src/main/java/com/helloworld/App.java
Normal file
|
@ -0,0 +1,12 @@
|
|||
package com.helloworld;
|
||||
import org.json.JSONObject;
|
||||
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("Hello", "World!");
|
||||
System.out.println(obj.toString());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue