mirror of
https://github.com/actions/setup-java
synced 2024-11-14 01:22:39 +00:00
7d219e5bd5
* Add java-package parameter to action, support jre, jdk, and jdk+fx (#1) * Update tests to use 'jdk', 'jre', and 'jdk+fx' javaPackage parameters * Match extension only at end of line * Update README.md * Update workflow to use 'node-version' instead of deprecated 'version'
26 lines
503 B
YAML
26 lines
503 B
YAML
name: Main workflow
|
|
on: [push]
|
|
jobs:
|
|
run:
|
|
name: Run
|
|
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
|
|
with:
|
|
node-version: 10.x
|
|
|
|
- name: npm install
|
|
run: npm install
|
|
|
|
- name: Lint
|
|
run: npm run format-check
|
|
|
|
- name: npm test
|
|
run: npm test
|