Implement network_traffic sensor (#39) #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: "Unit Tests Java ${{ matrix.java }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [8, 11, 16, 18] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Build with Gradle | |
run: ./gradlew assemble | |
- name: Test with Gradle | |
run: ./gradlew test | |
- name: Build JAR | |
run: ./gradlew jar | |
validation: | |
name: "Validation" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: gradle/wrapper-validation-action@v1 |