name: Run tests

on: 
  push:
  pull_request:
    types: [ opened, reopened, edited ]
    branches:
      - master

jobs:
  java_tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java: [ '8', '11', '16', '17' ]
    steps:
      - uses: actions/checkout@v2
      - name: Setup java
        uses: actions/setup-java@v2
        with:
          java-version: ${{ matrix.java }}
          architecture: x64
          distribution: 'temurin'
      - name: Run tests with Maven
        run: mvn -B test --file pom.xml
name: Run tests

on: 
  push:
  pull_request:
    types: [ opened, reopened, edited ]
    branches:
      - master

jobs:
  java_tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java: [ '8', '11', '16', '17' ]
    steps:
      - uses: actions/checkout@v2
      - name: Setup java
        uses: actions/setup-java@v2
        with:
          java-version: ${{ matrix.java }}
          architecture: x64
          distribution: 'temurin'
      - name: Run tests with Maven
        env:
          API_KEY: ${{ secrets.API_KEY }}
        run: mvn -B test --file pom.xml
Add api key for tests
chore: Add api key for tests
