Skip to content

Add DeviceID Script for Testing #68

Add DeviceID Script for Testing

Add DeviceID Script for Testing #68

Workflow file for this run

name: Java CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
pre:
name: Prerequisites
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Enforce CLA signature
env:
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }}
run: curl https://raw.githubusercontent.com/shapesecurity/CLA/HEAD/cla-check.sh | bash
build:
name: Build
needs: pre
if: |
!cancelled() && !failure()
runs-on: ubuntu-latest
strategy:
matrix:
java: [11]
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: CI
run: |
java -Xmx32m -version
javac -J-Xmx32m -version
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
mvn test -B
- run: node --test
demo-site-lint:
if: |
!cancelled() && !failure()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
working-directory: ./demo-site
run: npm install
- name: Lint
working-directory: ./demo-site
run: npm run lint